PDSos161/kern/syscall/proc_syscalls.c

16 lines
297 B
C
Raw Permalink Normal View History

2020-05-25 18:00:42 +02:00
#include <syscall.h>
#include <proc.h>
#include <thread.h>
#include <addrspace.h>
void sys__exit(int status) {
(void)status;
/* delete current process as */
struct addrspace *as = proc_getas();
as_destroy(as);
/* exit thread */
thread_exit();
panic("sys__exit end reached!!\n");
}