diff options
Diffstat (limited to 'libcpu')
| -rw-r--r-- | libcpu/aarch64/common/trap.c | 3 | ||||
| -rw-r--r-- | libcpu/arm/cortex-a/trap.c | 3 | ||||
| -rw-r--r-- | libcpu/risc-v/t-head/c906/syscall_c.c | 2 | ||||
| -rw-r--r-- | libcpu/risc-v/t-head/c906/trap.c | 2 | ||||
| -rw-r--r-- | libcpu/risc-v/virt64/syscall_c.c | 2 | ||||
| -rw-r--r-- | libcpu/risc-v/virt64/trap.c | 2 |
6 files changed, 6 insertions, 8 deletions
diff --git a/libcpu/aarch64/common/trap.c b/libcpu/aarch64/common/trap.c index 6faa740531..9af71d3001 100644 --- a/libcpu/aarch64/common/trap.c +++ b/libcpu/aarch64/common/trap.c @@ -34,7 +34,6 @@ extern long list_thread(void); #include <lwp_core_dump.h> #endif -void sys_exit(int value); void check_user_fault(struct rt_hw_exp_stack *regs, uint32_t pc_adj, char *info) { uint32_t mode = regs->cpsr; @@ -46,7 +45,7 @@ void check_user_fault(struct rt_hw_exp_stack *regs, uint32_t pc_adj, char *info) lwp_core_dump(regs, pc_adj); #endif backtrace((unsigned long)regs->pc, (unsigned long)regs->x30, (unsigned long)regs->x29); - sys_exit(-1); + sys_exit_group(-1); } } diff --git a/libcpu/arm/cortex-a/trap.c b/libcpu/arm/cortex-a/trap.c index 02a6e5c316..800e145b64 100644 --- a/libcpu/arm/cortex-a/trap.c +++ b/libcpu/arm/cortex-a/trap.c @@ -28,7 +28,6 @@ extern long list_thread(void); #include <lwp_core_dump.h> #endif -void sys_exit(int value); void check_user_fault(struct rt_hw_exp_stack *regs, uint32_t pc_adj, char *info) { uint32_t mode = regs->cpsr; @@ -39,7 +38,7 @@ void check_user_fault(struct rt_hw_exp_stack *regs, uint32_t pc_adj, char *info) #ifdef LWP_USING_CORE_DUMP lwp_core_dump(regs, pc_adj); #endif - sys_exit(-1); + sys_exit_group(-1); } } diff --git a/libcpu/risc-v/t-head/c906/syscall_c.c b/libcpu/risc-v/t-head/c906/syscall_c.c index 8bda3e6278..2abe1d065b 100644 --- a/libcpu/risc-v/t-head/c906/syscall_c.c +++ b/libcpu/risc-v/t-head/c906/syscall_c.c @@ -45,7 +45,7 @@ void syscall_handler(struct rt_hw_stack_frame *regs) if (syscallfunc == RT_NULL) { LOG_E("unsupported syscall!\n"); - sys_exit(-1); + sys_exit_group(-1); } #if DBG_LVL >= DBG_INFO diff --git a/libcpu/risc-v/t-head/c906/trap.c b/libcpu/risc-v/t-head/c906/trap.c index 35d8255a97..b0470dc6e8 100644 --- a/libcpu/risc-v/t-head/c906/trap.c +++ b/libcpu/risc-v/t-head/c906/trap.c @@ -225,7 +225,7 @@ void handle_user(rt_size_t scause, rt_size_t stval, rt_size_t sepc, struct rt_hw LOG_E("User Fault, killing thread: %s", rt_thread_self()->parent.name); EXIT_TRAP; - sys_exit(-1); + sys_exit_group(-1); } #endif diff --git a/libcpu/risc-v/virt64/syscall_c.c b/libcpu/risc-v/virt64/syscall_c.c index 8bda3e6278..2abe1d065b 100644 --- a/libcpu/risc-v/virt64/syscall_c.c +++ b/libcpu/risc-v/virt64/syscall_c.c @@ -45,7 +45,7 @@ void syscall_handler(struct rt_hw_stack_frame *regs) if (syscallfunc == RT_NULL) { LOG_E("unsupported syscall!\n"); - sys_exit(-1); + sys_exit_group(-1); } #if DBG_LVL >= DBG_INFO diff --git a/libcpu/risc-v/virt64/trap.c b/libcpu/risc-v/virt64/trap.c index 3839c03110..51531d9ad0 100644 --- a/libcpu/risc-v/virt64/trap.c +++ b/libcpu/risc-v/virt64/trap.c @@ -222,7 +222,7 @@ void handle_user(rt_size_t scause, rt_size_t stval, rt_size_t sepc, struct rt_hw LOG_E("User Fault, killing thread: %s", rt_thread_self()->parent.name); EXIT_TRAP; - sys_exit(-1); + sys_exit_group(-1); } #endif |
