idt: add default handlers for all IRQs
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include "../include/screen.h"
|
||||
|
||||
void isr_custom();
|
||||
void default_handler();
|
||||
|
||||
void isr_install() {
|
||||
idt_set_descriptor(0, (uint32)isr0, 0x8E);
|
||||
@@ -38,12 +39,22 @@ void isr_install() {
|
||||
idt_set_descriptor(29, (uint32)isr29, 0x8E);
|
||||
idt_set_descriptor(30, (uint32)isr30, 0x8E);
|
||||
idt_set_descriptor(31, (uint32)isr31, 0x8E);
|
||||
|
||||
for(int i = 32; i < 255; i++)
|
||||
idt_set_descriptor(i, (uint32)default_handler, 0x8E);
|
||||
|
||||
idt_set_descriptor(0x21, (uint32)isr_custom, 0x8E);
|
||||
|
||||
|
||||
idt_set(); // Load with ASM
|
||||
terminal_writestring("isr_install done\n");
|
||||
}
|
||||
|
||||
void default_handler()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void isr_custom()
|
||||
{
|
||||
terminal_writestring("YOOOOO!!!!!! I LOVE KATYA!!!!");
|
||||
|
||||
Reference in New Issue
Block a user