blob: d65b07d6150f1ca50424824868daae901a8a879a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#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");
}
|