Add an interrupt descriptor table.

Set up a very basic handler for divide by zero and
general protection faults.
This commit is contained in:
Drew Galbraith 2023-05-17 22:54:37 -07:00
parent 3e1a1f7485
commit 9fc1aa15ef
8 changed files with 132 additions and 2 deletions

View file

@ -11,3 +11,11 @@ void dbgln(const char* str) {
}
outb(COM1, '\n');
}
void panic(const char* str) {
asm volatile("cli");
dbgln(str);
dbgln("PANIC");
while (1)
;
}