summaryrefslogtreecommitdiff
path: root/stage3/interrupts.c
diff options
context:
space:
mode:
Diffstat (limited to 'stage3/interrupts.c')
-rw-r--r--stage3/interrupts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stage3/interrupts.c b/stage3/interrupts.c
index 4a4687c..2713cfa 100644
--- a/stage3/interrupts.c
+++ b/stage3/interrupts.c
@@ -59,7 +59,7 @@ void interrupt_handler(interrupt_frame *frame)
// TODO: possible race condition due to printing here
// when exception happens in printing code itself
- if (exception[frame->which].data != nil) {
+ if (exception[frame->which].data == nil) {
print(S("Unknown Exception "));
print_dec(frame->which);
} else {