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

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

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

zhoumin July 21, 2022, 12:51 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
 }
 
 /*