#include "alloc.h" #include "debug.h" #include "drivers.h" #include "gdt.h" #include "icon.h" #include "idt.h" #include "kprintf.h" #include "memory.h" #include "multiboot.h" #include "power.h" #include "process.h" #include "shell.h" #include "string.h" #include "terminal.h" #include "thread.h" #include "time.h" #include "vbe.h" #include #include #include /* Check if the compiler thinks you are targeting the wrong operating system. */ #if defined(__linux__) #error \ "You are not using a cross-compiler, you will most certainly run into trouble" #endif /* This tutorial will only work for the 32-bit ix86 targets. */ #if !defined(__i386__) #error "This tutorial needs to be compiled with a ix86-elf compiler" #endif static void bozo(int int_code) { (void)int_code; kprintf("apagnan code\n"); } void kernel_main(multiboot_info_t *mbd, uint32_t magic) { cli(); init_gdt(); init_idt(); init_memory(mbd, magic); load_drivers(); terminal_initialize(); create_process(1); create_thread(current_pcb, shell_init); toris(); }