diff options
author | Marvin Borner | 2019-11-03 21:37:31 +0100 |
---|---|---|
committer | Marvin Borner | 2019-11-03 21:37:31 +0100 |
commit | 2180357ff5edbd4c85e125ea5c45d9b2a2026944 (patch) | |
tree | 4de62d243617c54afc0d0bfdc56caa668a22c0fb /src/kernel/kernel.c | |
parent | 39b20774fc4684f390aa426148371c316e37c98d (diff) |
Began system management bios implementation and fixed things
Diffstat (limited to 'src/kernel/kernel.c')
-rw-r--r-- | src/kernel/kernel.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/kernel/kernel.c b/src/kernel/kernel.c index b133a0c..9be7914 100644 --- a/src/kernel/kernel.c +++ b/src/kernel/kernel.c @@ -9,6 +9,7 @@ #include <kernel/mutliboot.h> #include <kernel/fs/initrd.h> #include <kernel/syscall/syscall.h> +#include <kernel/smbios/smbios.h> extern void switch_to_user(); @@ -23,12 +24,14 @@ void kernel_main(struct multiboot *mboot_ptr) { idt_install(); isrs_install(); irq_install(); - set_optimal_resolution(); // Install drivers - asm volatile ("cli"); - keyboard_install(); asm volatile ("sti"); + set_optimal_resolution(); + keyboard_install(); + + // Get hardware information + get_smbios(); // Setup initial ramdisk assert(mboot_ptr->mods_count > 0); |