diff options
author | Marvin Borner | 2021-06-08 21:13:33 +0200 |
---|---|---|
committer | Marvin Borner | 2021-06-08 21:13:33 +0200 |
commit | 24ce56cccb6f179f8c6ed9ad82e6afb871aabf80 (patch) | |
tree | ec3283601331b6def7218c7b39386d6bb25bcd5b /kernel/drivers | |
parent | f7890c4b16b5d817db286119ac0a88630c3a1cf9 (diff) |
Process exit improvements
Diffstat (limited to 'kernel/drivers')
-rw-r--r-- | kernel/drivers/int.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/kernel/drivers/int.c b/kernel/drivers/int.c index 39462fa..f6a5134 100644 --- a/kernel/drivers/int.c +++ b/kernel/drivers/int.c @@ -109,12 +109,16 @@ static void int_trap_handler(struct int_frame *frame) frame->eip, frame->eip - proc->entry); printf("\t\t-> Process: [entry: %x, kstack: %x, esp %x, ustack: %x]\n", proc->entry, proc->stack.kernel, frame->esp, proc->stack.user); + faulting--; - proc_exit(proc, 1); + proc_exit(1); } else { + print_trace(); while (1) __asm__ volatile("cli\nhlt"); } + + assert_not_reached(); } /** |