aboutsummaryrefslogtreecommitdiff
path: root/kernel/drivers/interrupts.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/interrupts.c')
-rw-r--r--kernel/drivers/interrupts.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/kernel/drivers/interrupts.c b/kernel/drivers/interrupts.c
index 255f976..917733f 100644
--- a/kernel/drivers/interrupts.c
+++ b/kernel/drivers/interrupts.c
@@ -176,10 +176,9 @@ void isr_panic(struct regs *r)
r->err_code, r->eip, r->cs & 3);
struct proc *proc = proc_current();
if (proc) {
- printf("\t-> Exception occurred in %s at addr 0x%x\n", proc->name,
- r->eip - proc->entry);
- proc_exit(proc, 1);
- proc_yield(r);
+ printf("\t-> Exception occurred in %s at addr 0x%x (offset 0x%x)\n", proc->name,
+ r->eip, r->eip - proc->entry);
+ proc_exit(proc, r, 1);
} else {
__asm__ volatile("cli\nhlt");
}