#include "kprintf.h" #include "terminal.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 void kernel_main(void) { /* Initialize terminal interface */ terminal_initialize(); /* Newline support is left as an exercise. */ for (int i = 100; i; i--) kprintf(0, "%d\n", i); void initGdt(); kprintf(0, "mange ta mere avec ton argument a kprintf fdp\n"); while (true) terminal_getkey(); }