aboutsummaryrefslogtreecommitdiff
path: root/kernel/drivers
diff options
context:
space:
mode:
authorMarvin Borner2021-03-12 16:07:45 +0100
committerMarvin Borner2021-03-12 16:07:45 +0100
commitf1751c121d48f2d8936c72bdc347777d1e7402d9 (patch)
tree399c08a59756d8980aad6c451e2b0e4c97b3911f /kernel/drivers
parent99b674a9e8d78b12188cc0280b990ec50de109d8 (diff)
Let's gooo!
Diffstat (limited to 'kernel/drivers')
-rw-r--r--kernel/drivers/interrupts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/drivers/interrupts.c b/kernel/drivers/interrupts.c
index 55926b7..a0cd106 100644
--- a/kernel/drivers/interrupts.c
+++ b/kernel/drivers/interrupts.c
@@ -171,9 +171,9 @@ void isr_uninstall_handler(int isr)
void isr_panic(struct regs *r)
{
+ printf("%s Exception (%x) at 0x%x (ring %d), exiting!\n", isr_exceptions[r->int_no],
+ r->err_code, r->eip, r->cs & 3);
struct proc *proc = proc_current();
- printf("%s Exception (%x) at 0x%x, exiting!\n", isr_exceptions[r->int_no], r->err_code,
- r->eip);
if (proc) {
printf("\t-> Exception occurred in %s at addr 0x%x\n", proc->name,
r->eip - proc->entry);