aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarvin Borner2020-05-12 19:28:03 +0200
committerMarvin Borner2020-05-12 19:28:03 +0200
commitb28552c99b9d2bf59407411c9514d18af3d392c0 (patch)
tree43c7ef1a8447569c9cd6f49c8ae67ddff80f3cb3
parent5ce6a802d33a17fa3979b7153c58d005e1efa352 (diff)
Removed useless fb check in fault handler
-rw-r--r--src/kernel/interrupts/isr.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/kernel/interrupts/isr.c b/src/kernel/interrupts/isr.c
index 66a2a38..73e24a3 100644
--- a/src/kernel/interrupts/isr.c
+++ b/src/kernel/interrupts/isr.c
@@ -132,12 +132,8 @@ void fault_handler(struct regs *r)
process_suspend(current_proc->pid);
process_force_switch();
} else {
- if (faulting_address != (u32)fb) {
- panic("Page fault before multitasking started!");
- } else {
- debug(RED "Fatal video error!" RES);
- halt_loop();
- }
+ debug(RED "%s before multitasking started!" RES, message);
+ halt_loop();
}
}
} \ No newline at end of file