From 39b2c4350d46cd415860356239d6c4d8ba61cf92 Mon Sep 17 00:00:00 2001 From: Zihao Yu Date: Wed, 9 Dec 2020 13:33:56 +0800 Subject: [PATCH] native,platform: move heap.start to 0x1000000 * This allows using some part of the heap even the user program is loaded to 0x3000000, where VME is disabled. --- am/src/native/platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/am/src/native/platform.c b/am/src/native/platform.c index 0003aa6..c8c8b30 100644 --- a/am/src/native/platform.c +++ b/am/src/native/platform.c @@ -8,7 +8,7 @@ #define MAX_CPU 16 #define TRAP_PAGE_START (void *)0x100000 -#define PMEM_START (void *)0x3000000 // for nanos-lite with vme disabled +#define PMEM_START (void *)0x1000000 // for nanos-lite with vme disabled #define PMEM_SIZE (128 * 1024 * 1024) static int pmem_fd = 0; static void *pmem = NULL;