diff options
author | Marvin Borner | 2019-09-19 19:56:59 +0200 |
---|---|---|
committer | Marvin Borner | 2019-09-19 20:05:38 +0200 |
commit | 05e1fedcc9cd30d1a34a65e640da45e980b4f859 (patch) | |
tree | 9cfb7620907ac126f26cdfe9363cb73ed74ea179 /src/kernel/kernel.c | |
parent | ffd82e18b5259fab477ad375a7af8550fac526d8 (diff) |
Moved source to kernel directory
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 |