From 05e1fedcc9cd30d1a34a65e640da45e980b4f859 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 19 Sep 2019 19:56:59 +0200 Subject: Moved source to kernel directory --- src/kernel/kernel.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/kernel/kernel.c (limited to 'src/kernel/kernel.c') 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 -- cgit v1.2.3