summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorShell <[email protected]>2022-12-10 22:16:42 +0800
committerGitHub <[email protected]>2022-12-10 22:16:42 +0800
commite991be9c51c54883b56ee3d9e7f30db33c404192 (patch)
tree33e4e9318e0d03c68bd0dcda029d9ce4b5b3bf6b /components
parent190eda6ab03ca294238da59c3eb1069dac276a93 (diff)
[smart][risc-v/libcpu] port rv64 cpu code (#6704)
* [risc-v/libcpu] porting Smart & RTOS * [fix] rv64 plic * [risc-v/rv64] remove macro in rtdef
Diffstat (limited to 'components')
-rw-r--r--components/lwp/arch/risc-v/rv64/lwp_arch.h1
-rw-r--r--components/lwp/lwp.c2
2 files changed, 2 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 9e12aa5ba7..c1c237c7a5 100644
--- a/components/lwp/arch/risc-v/rv64/lwp_arch.h
+++ b/components/lwp/arch/risc-v/rv64/lwp_arch.h
@@ -50,6 +50,7 @@ extern "C" {
#endif
rt_mmu_info* arch_kernel_get_mmu_info(void);
+int arch_expand_user_stack(void *addr);
rt_inline unsigned long rt_hw_ffz(unsigned long x)
{
diff --git a/components/lwp/lwp.c b/components/lwp/lwp.c
index c59d1c8261..7dafed6a35 100644
--- a/components/lwp/lwp.c
+++ b/components/lwp/lwp.c
@@ -1320,7 +1320,7 @@ pid_t lwp_execve(char *filename, int debug, int argc, char **argv, char **envp)
#ifdef RT_USING_MUSL
extern char **__environ;
#else
-char __environ = 0;
+char **__environ = 0;
#endif
pid_t exec(char *filename, int debug, int argc, char **argv)