#include #include #include #include "vga.h" #include "cpu/pic.h" #include "cpu/idt.h" #include "std/kstd.h" #if defined(__linux__) #error "You are not using a cross-compiler, you will most certainly run into trouble" #endif #if !defined(__i386__) #error "This OS needs to be compiled with a ix86-elf compiler" #endif void kmain(void) { terminal_initialize(); kprintf("kmain(): info: kernel init started\n"); kprintf("[ ] Remapping PIC"); pic_remap(0x20, 0x28); kprintf("\r[ OK ]\n"); kprintf("[ ] Installing exception handlers"); exception_handlers_init(); kprintf("\r[ OK ]\n"); kprintf("[ ] Initializing IDT"); idt_init(); kprintf("\r[ OK ]\n"); terminal_writestring("Initialization finished.\n"); }