From 6fb9d1f602970ac89fbb37843fd3e99f56f0f7d8 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 29 Oct 2019 00:53:15 +0100 Subject: Some minor improvements --- src/kernel/kernel.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/kernel/kernel.c') diff --git a/src/kernel/kernel.c b/src/kernel/kernel.c index dc93824..75867a8 100644 --- a/src/kernel/kernel.c +++ b/src/kernel/kernel.c @@ -9,6 +9,7 @@ void init() { vga_log("Installing basic features of Melvix...", 0); + // Install features timer_install(); gdt_install(); init_serial(); @@ -17,15 +18,17 @@ void init() { idt_install(); isrs_install(); irq_install(); - keyboard_install(); set_optimal_resolution(); + // Install drivers + asm volatile ("cli"); + keyboard_install(); asm volatile ("sti"); } void kernel_main(void) { init(); - // __asm__ ("div %0" :: "r"(0)); // Exception testing x/0 + // asm volatile ("div %0" :: "r"(0)); // Exception testing x/0 loop: asm volatile ("hlt"); goto loop; -- cgit v1.2.3