acadia/zion/zion.cpp
Drew Galbraith 9fc1aa15ef Add an interrupt descriptor table.
Set up a very basic handler for divide by zero and
general protection faults.
2023-05-17 22:54:37 -07:00

18 lines
298 B
C++

#include <stdint.h>
#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)
;
}