From b28552c99b9d2bf59407411c9514d18af3d392c0 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 12 May 2020 19:28:03 +0200 Subject: Removed useless fb check in fault handler --- src/kernel/interrupts/isr.c | 8 ++------ 1 file 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 -- cgit v1.2.3