remove obsolete function

This commit is contained in:
Stefan Lankes 2015-01-18 22:20:42 +01:00
parent f220fc6d4b
commit d47bdb3104
2 changed files with 0 additions and 12 deletions

View file

@ -133,9 +133,6 @@ void NORETURN abort(void);
/** @brief This function shall be called by leaving kernel-level tasks */
void NORETURN leave_kernel_task(void);
/** @brief This function shall be called by leaving user-level tasks */
void NORETURN leave_user_task(void);
#ifdef __cplusplus
}
#endif

View file

@ -151,15 +151,6 @@ void NORETURN leave_kernel_task(void) {
do_exit(result);
}
/** @brief This function shall be called by leaving user-level tasks */
void NORETURN leave_user_task(void)
{
SYSCALL1(__NR_exit, 0);
// this point should never reached
while(1) {}
}
/** @brief To be called by the systemcall to exit tasks */
void NORETURN sys_exit(int arg) {
do_exit(arg);