diff options
author | Marvin Borner | 2021-03-13 15:12:25 +0100 |
---|---|---|
committer | Marvin Borner | 2021-03-13 15:12:25 +0100 |
commit | 7f2adfc77d17abf19e843ed09ccd698ee541796d (patch) | |
tree | e78e67154d03a6acd7c91298ad821f6d96d6021c /kernel/drivers | |
parent | 8176351e1a3d1598bedbc007897d530475942275 (diff) |
Some security measures
Diffstat (limited to 'kernel/drivers')
-rw-r--r-- | kernel/drivers/interrupts.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; } /** |