syscall: change handling of exceptions and traps

This commit is contained in:
Michael Shaw 2023-11-21 19:19:14 -05:00
commit 0a0235612e
5 changed files with 59 additions and 18 deletions

View file

@ -35,6 +35,7 @@ void sys_exit(int status)
kprintf("(syscall)Process %d exited with status 0x%x\n", getpid(), status);
proc_set_current(0);
schedule();
}
static void syscall_insert(uint64_t syscall_no, syscall_t syscall)