diff options
Diffstat (limited to 'src/kernel/kernel.c')
-rw-r--r-- | src/kernel/kernel.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/kernel/kernel.c b/src/kernel/kernel.c new file mode 100644 index 0000000..49fe0b7 --- /dev/null +++ b/src/kernel/kernel.c @@ -0,0 +1,23 @@ +#include "graphics/graphics.h" +#include "gdt/gdt.h" +#include "interrupts/interrupts.h" +#include "input/input.h" +#include "timer/timer.h" +#include "sound/sound.h" + +void kernel_main(void) { + gdt_install(); + idt_install(); + isrs_install(); + irq_install(); + + __asm__ __volatile__ ("sti"); + + terminal_initialize(); + terminal_write_string("Melvix loaded successfully!\n"); + + timer_install(); + keyboard_install(); + mouse_install(); + // __asm__ ("div %0" :: "r"(0)); // Exception testing x/0 +}
\ No newline at end of file |