Add an interrupt descriptor table.
Set up a very basic handler for divide by zero and general protection faults.
This commit is contained in:
parent
3e1a1f7485
commit
9fc1aa15ef
8 changed files with 132 additions and 2 deletions
|
|
@ -2,11 +2,16 @@
|
|||
|
||||
#include "common/gdt.h"
|
||||
#include "debug/debug.h"
|
||||
#include "interrupt/interrupt.h"
|
||||
|
||||
extern "C" void zion() {
|
||||
dbgln("Hello World!");
|
||||
InitGdt();
|
||||
dbgln("New GDT Loaded!");
|
||||
InitIdt();
|
||||
dbgln("IDT Loaded!");
|
||||
uint64_t a = 11 / 0;
|
||||
dbgln("Recovered");
|
||||
|
||||
while (1)
|
||||
;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue