aboutsummaryrefslogtreecommitdiff
path: root/src/kernel.c
diff options
context:
space:
mode:
authorMarvin Borner2019-09-19 19:56:59 +0200
committerMarvin Borner2019-09-19 20:05:38 +0200
commit05e1fedcc9cd30d1a34a65e640da45e980b4f859 (patch)
tree9cfb7620907ac126f26cdfe9363cb73ed74ea179 /src/kernel.c
parentffd82e18b5259fab477ad375a7af8550fac526d8 (diff)
Moved source to kernel directory
Diffstat (limited to 'src/kernel.c')
-rw-r--r--src/kernel.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/kernel.c b/src/kernel.c
deleted file mode 100644
index e08c370..0000000
--- a/src/kernel.c
+++ /dev/null
@@ -1,32 +0,0 @@
-#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();
-
- beep(262, 20);
- beep(294, 20);
- beep(330, 20);
- beep(349, 20);
- beep(392, 20);
- beep(440, 20);
- beep(494, 20);
- beep(523, 20);
- // __asm__ ("div %0" :: "r"(0)); // Exception testing x/0
-} \ No newline at end of file