Skip to content

Commit 5206b3a

Browse files
authored
[lwp/riscv]修正用户态参数空间占用堆地址空间的问题 (#10014)
* [lwp/riscv]修正用户态参数空间占用堆空间的问题
1 parent a7ba86e commit 5206b3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#define USER_VADDR_START 0x00001000UL
3030
#define USER_VADDR_TOP 0x003ffffff000UL
3131
#define USER_STACK_VSTART 0x000270000000UL
32-
#define USER_STACK_VEND USER_HEAP_VADDR
32+
#define USER_STACK_VEND (USER_HEAP_VADDR - (ARCH_PAGE_SIZE * 8)) /* start of ARGC ARGV ENVP. FIXME: space is ARG_MAX */
3333
#define USER_HEAP_VADDR 0x000300000000UL
3434
#define USER_HEAP_VEND USER_VADDR_TOP
3535
#define USER_LOAD_VADDR 0x200000000

0 commit comments

Comments
 (0)