From f96b8ad1ee83dec08ae636e179cc48019ca50b12 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 10 Apr 2021 15:25:27 +0200 Subject: Some changes here and there --- kernel/drivers/interrupts.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'kernel/drivers') diff --git a/kernel/drivers/interrupts.c b/kernel/drivers/interrupts.c index 9898ef1..8ca6987 100644 --- a/kernel/drivers/interrupts.c +++ b/kernel/drivers/interrupts.c @@ -181,6 +181,8 @@ void isr_panic(struct regs *r) if (proc) { printf("\t-> Exception occurred in %s at addr 0x%x (offset 0x%x)\n", proc->name, r->eip, r->eip - proc->entry); + printf("\t\t-> Process: [entry: %x, kstack: %x, ustack: %x]\n", proc->entry, + proc->stack.kernel, proc->stack.user); proc_exit(proc, r, 1); } else { __asm__ volatile("cli\nhlt"); -- cgit v1.2.3