Browse Source

[lwp/riscv]修正用户态参数空间占用堆地址空间的问题 (#10014)

* [lwp/riscv]修正用户态参数空间占用堆空间的问题
heyuanjie87 2 months ago
parent
commit
5206b3ae2d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      components/lwp/arch/risc-v/rv64/lwp_arch.h

+ 1 - 1
components/lwp/arch/risc-v/rv64/lwp_arch.h

@@ -29,7 +29,7 @@
 #define USER_VADDR_START    0x00001000UL
 #define USER_VADDR_TOP      0x003ffffff000UL
 #define USER_STACK_VSTART   0x000270000000UL
-#define USER_STACK_VEND     USER_HEAP_VADDR
+#define USER_STACK_VEND     (USER_HEAP_VADDR - (ARCH_PAGE_SIZE * 8)) /* start of ARGC ARGV ENVP. FIXME: space is ARG_MAX */
 #define USER_HEAP_VADDR     0x000300000000UL
 #define USER_HEAP_VEND      USER_VADDR_TOP
 #define USER_LOAD_VADDR     0x200000000