#include #include #include #include #include #include static inline void __attribute__ ((noreturn)) l4_exit(int status) { int ret; write_mr(L4SYS_ARG0, status); /* Call pager with exit() request and block on its receive phase */ ret = l4_sendrecv(PAGER_TID, PAGER_TID, L4_IPC_TAG_EXIT); /* This call should not fail or return */ print_err("%s: L4 IPC returned: %d.\n", __FUNCTION__, ret); BUG(); } void __attribute__ ((noreturn)) _exit(int status) { l4_exit(status); }