[v3,17/24] eal/linux: set eal base address for LoongArch

Message ID 20220606131054.2097526-18-zhoumin@loongson.cn (mailing list archive)
State Superseded, archived
Delegated to: David Marchand
Headers
Series Support LoongArch architecture |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

zhoumin June 6, 2022, 1:10 p.m. UTC
  This patch sets a different eal base address for LoongArch
architecture.

Signed-off-by: Min Zhou <zhoumin@loongson.cn>
---
 lib/eal/linux/eal_memory.c | 4 ++++
 1 file changed, 4 insertions(+)
  

Patch

diff --git a/lib/eal/linux/eal_memory.c b/lib/eal/linux/eal_memory.c
index c890c42106..60fc8cc6ca 100644
--- a/lib/eal/linux/eal_memory.c
+++ b/lib/eal/linux/eal_memory.c
@@ -77,7 +77,11 @@  uint64_t eal_get_baseaddr(void)
 	 * rte_mem_check_dma_mask for ensuring all memory is within supported
 	 * range.
 	 */
+#if defined(RTE_ARCH_LOONGARCH)
+	return 0x7000000000ULL;
+#else
 	return 0x100000000ULL;
+#endif
 }
 
 /*