diff options
| author | heyuanjie87 <[email protected]> | 2025-02-24 09:17:22 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-02-24 09:17:22 +0800 |
| commit | 5206b3ae2dbb455029696da0097c8ea3634b4af1 (patch) | |
| tree | 074d80c10a477883d3d56794211c03831f60fa49 | |
| parent | a7ba86ef389e964bb33130fbfc798dfaa3eef57b (diff) | |
[lwp/riscv]修正用户态参数空间占用堆地址空间的问题 (#10014)
* [lwp/riscv]修正用户态参数空间占用堆空间的问题
| -rw-r--r-- | components/lwp/arch/risc-v/rv64/lwp_arch.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/lwp/arch/risc-v/rv64/lwp_arch.h b/components/lwp/arch/risc-v/rv64/lwp_arch.h index 7a4a8b3f42..f1d1176f5c 100644 --- a/components/lwp/arch/risc-v/rv64/lwp_arch.h +++ b/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 |
