Add printf, gdb support, fix gdt
diff --git a/src/main.c b/src/main.c
index 4854924..f5b6200 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,19 +1,24 @@
#include "vga.h"
+#include "log.h"
#include "descriptor_tables.h"
-int main(void *mboot)
+int kmain(void *mboot)
{
vga_clear();
vga_set_color(LIGHT_BLUE, BLACK);
vga_write("Hello!\nWelcome to Bluejay OS\n");
-
vga_set_color(WHITE, BLACK);
- init_idt();
+ init_descriptor_tables();
- //init_descriptor_tables();
+ vga_set_color(LIGHT_GREEN, BLACK);
+ vga_write("Setup complete!\n");
+ vga_set_color(WHITE, BLACK);
- //asm volatile("int $0x03");
+ kassert(0, "should fail");
+
+ while (1)
+ {}
return 0xCAFEBABE;
}