diff options
Diffstat (limited to 'src/kernel/kernel.c')
-rw-r--r-- | src/kernel/kernel.c | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/src/kernel/kernel.c b/src/kernel/kernel.c deleted file mode 100644 index 48525d9..0000000 --- a/src/kernel/kernel.c +++ /dev/null @@ -1,74 +0,0 @@ -#include <acpi/acpi.h> -#include <cmos/rtc.h> -#include <fs/ata.h> -#include <fs/elf.h> -#include <fs/ext2.h> -#include <fs/load.h> -#include <gdt/gdt.h> -#include <graphics/vesa.h> -#include <input/input.h> -#include <interrupts/interrupts.h> -#include <io/io.h> -#include <lib/lib.h> -#include <lib/stdio.h> -#include <lib/stdlib.h> -#include <memory/alloc.h> -#include <memory/paging.h> -#include <multiboot.h> -#include <net/network.h> -#include <pci/pci.h> -#include <syscall/syscall.h> -#include <timer/timer.h> - -u32 stack_hold; - -void kernel_main(u32 magic, u32 addr, u32 esp) -{ - multiboot_address = addr; - stack_hold = esp; - - if (magic != MULTIBOOT_BOOTLOADER_MAGIC) { - warn("Invalid boot magic!"); - halt_loop(); - } - - if (multiboot_address & 7) { - warn("Unaligned mbi!"); - halt_loop(); - } - - info("Installing basic features of Melvix..."); - - // Install features - bss_clean(); - gdt_install(); - serial_install(); - idt_install(); - isrs_install(); - irq_install(); - - paging_install(); - multiboot_parse(); - - // Install drivers - timer_install(); - mouse_install(); - keyboard_install(); - pci_remap(); - network_install(); - - memory_print(); - rtc_print(); - - ata_init(); - ext2_init_fs(); - - load_binaries(); - set_optimal_resolution(); - log("Content of /etc/test: %s", read_file("/etc/test")); - - syscalls_install(); - kexec("/bin/init"); - - // asm ("div %0" :: "r"(0)); // Exception testing x/0 -}
\ No newline at end of file |