From 7f2adfc77d17abf19e843ed09ccd698ee541796d Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 13 Mar 2021 15:12:25 +0100 Subject: Some security measures --- kernel/drivers/interrupts.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'kernel/drivers') diff --git a/kernel/drivers/interrupts.c b/kernel/drivers/interrupts.c index a0cd106..fe2321a 100644 --- a/kernel/drivers/interrupts.c +++ b/kernel/drivers/interrupts.c @@ -232,6 +232,10 @@ static void isr_install(void) idt_set_gate(29, (u32)isr29, 0x08, 0x8E); idt_set_gate(30, (u32)isr30, 0x08, 0x8E); idt_set_gate(31, (u32)isr31, 0x08, 0x8E); + + // Set default routines + for (u32 i = 0; i < 256; i++) + isr_routines[i] = isr_panic; } /** -- cgit v1.2.3