#include "tty.h" /* this only work for the 32-bit ix86 targets. */ #if !defined(__i386__) #error "This tutorial needs to be compiled with a ix86-elf compiler" #endif #if defined(__cplusplus) extern "C" /* Use C linkage for kernel_main. */ #endif void kernel_main() { tty_init(); tty_writestring("Hello, kernel World!\n"); }