syscall: change handling of exceptions and traps
This commit is contained in:
parent
b595652ef4
commit
0a0235612e
5 changed files with 59 additions and 18 deletions
|
|
@ -201,7 +201,7 @@ gate_syscall:
|
|||
movq 40(%rax), %rsi /* arguments */
|
||||
|
||||
call syscall
|
||||
call schedule
|
||||
iretq
|
||||
|
||||
/* void return_from_irq(struct procregs *regs, paddr_t cr3); */
|
||||
.global _return_to_user
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue