[PATCH v4 17/24] eal/linux: set eal base address for LoongArch
Min Zhou
zhoumin at loongson.cn
Thu Jul 21 14:51:37 CEST 2022
This patch sets a different eal base address for LoongArch
architecture.
Signed-off-by: Min Zhou <zhoumin at loongson.cn>
---
lib/eal/linux/eal_memory.c | 4 ++++
1 file changed, 4 insertions(+)
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
}
/*
--
2.31.1
More information about the dev
mailing list