diff options
author | Marvin Borner | 2019-09-30 22:41:39 +0200 |
---|---|---|
committer | Marvin Borner | 2019-09-30 22:42:02 +0200 |
commit | 682c47a98844ffec3f3129160e9cdb98ba129989 (patch) | |
tree | e673ace5ef65c83907cbd6575ec3a1a7e49b0fd6 /src/kernel/kernel.c | |
parent | 2fb0965a68dd232a70d1616bfbd7281fc65c2b0a (diff) |
Added paging and fixed several bugs
Diffstat (limited to 'src/kernel/kernel.c')
-rw-r--r-- | src/kernel/kernel.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/kernel/kernel.c b/src/kernel/kernel.c index 383966d..013f7d5 100644 --- a/src/kernel/kernel.c +++ b/src/kernel/kernel.c @@ -4,26 +4,29 @@ #include "interrupts/interrupts.h" #include "input/input.h" #include "timer/timer.h" +#include "paging/paging.h" +#include "paging/kheap.h" void init() { gdt_install(); idt_install(); isrs_install(); irq_install(); - asm volatile ("sti"); + init_kheap(); + page_init(); timer_install(); - terminal_initialize(); + // terminal_initialize(); keyboard_install(); // mouse_install(); + asm volatile ("sti"); } void kernel_main(void) { // vbe_set_mode(0x11B); - // set_optimal_resolution(); + set_optimal_resolution(); init(); - keyboard_install(); - terminal_write_string("Melvix loaded successfully!\n"); + // terminal_write_string("Melvix loaded successfully!\n"); // __asm__ ("div %0" :: "r"(0)); // Exception testing x/0 for (;;); |