use rt_abort instead of rt_trap if rt_syscall_0(RT_SYSCALL_EXIT) returns

This commit is contained in:
Chris Copeland 2024-06-06 00:46:57 -07:00
parent 40a0383798
commit f7a1c0ca63
Signed by: chrisnc
GPG Key ID: 14550DA72485DF30

View File

@ -98,7 +98,7 @@ __attribute__((noreturn)) void rt_task_exit(void)
rt_logf("syscall: %s exit\n", rt_task_name());
rt_syscall_0(RT_SYSCALL_EXIT);
// Should not be reached.
rt_trap();
rt_abort();
}
struct rt_task *rt_task_self(void)