2023-05-17 20:20:53 -07:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2023-05-17 21:41:08 -07:00
|
|
|
#include "common/gdt.h"
|
2023-05-17 20:42:59 -07:00
|
|
|
#include "debug/debug.h"
|
2023-05-17 22:54:37 -07:00
|
|
|
#include "interrupt/interrupt.h"
|
2023-05-17 20:20:53 -07:00
|
|
|
|
|
|
|
extern "C" void zion() {
|
2023-05-17 20:42:59 -07:00
|
|
|
dbgln("Hello World!");
|
2023-05-17 21:41:08 -07:00
|
|
|
InitGdt();
|
|
|
|
dbgln("New GDT Loaded!");
|
2023-05-17 22:54:37 -07:00
|
|
|
InitIdt();
|
|
|
|
dbgln("IDT Loaded!");
|
|
|
|
uint64_t a = 11 / 0;
|
|
|
|
dbgln("Recovered");
|
2023-05-17 20:20:53 -07:00
|
|
|
|
|
|
|
while (1)
|
|
|
|
;
|
|
|
|
}
|