aboutsummaryrefslogtreecommitdiff
path: root/kernel/drivers
diff options
context:
space:
mode:
authorMarvin Borner2021-04-02 16:17:50 +0200
committerMarvin Borner2021-04-02 16:17:50 +0200
commitb62b9d1f33a4911feb9f318ece0c1565f27abf8d (patch)
treeaecea9f7b5bf651b584911cf90c61258b9564556 /kernel/drivers
parentd055495f3dbb62f74809d31a84621d6e86d61d0a (diff)
Replaced target macros
Diffstat (limited to 'kernel/drivers')
-rw-r--r--kernel/drivers/interrupts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/drivers/interrupts.c b/kernel/drivers/interrupts.c
index 917733f..0189b6c 100644
--- a/kernel/drivers/interrupts.c
+++ b/kernel/drivers/interrupts.c
@@ -173,7 +173,7 @@ 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);
+ r->err_code, r->eip, RING(r));
struct proc *proc = proc_current();
if (proc) {
printf("\t-> Exception occurred in %s at addr 0x%x (offset 0x%x)\n", proc->name,