summaryrefslogtreecommitdiff
path: root/src/stem/task/idt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stem/task/idt.c')
-rw-r--r--src/stem/task/idt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stem/task/idt.c b/src/stem/task/idt.c
index 7c05e2e..4866550 100644
--- a/src/stem/task/idt.c
+++ b/src/stem/task/idt.c
@@ -67,7 +67,7 @@ struct idt_ptr idt_ptr;
static int_callback irq_handlers[16] = {0};
void idt_isrHandler(struct registers regs) {
- if ((regs.int_no == 14 && paging_fault(&regs) == 0) || regs.int_no != 14) {
+ if ((regs.int_no == 14 && paging_fault(&regs) != 0) || regs.int_no != 14) {
if (tasking_handleException(&regs) == 0) {
monitor_write(" >> >> SOMETHING BAD HAPPENNED << <<\n");
monitor_write("Unhandled exception ");