polka/src/Main.cc

29 lines
593 B
C++

#include <stddef.h>
#include <stdint.h>
#include "Console.hh"
#if defined(__linux__)
#error "This file should be compiled with a cross-compiler, not the Linux system compiler!"
#endif
#if !defined(__i386__)
#error "This file should be compiled with an ix86-elf compiler!"
#endif
/** Called very early, before global initialization. */
extern "C"
void
kearly()
{
kernel::Console console;
console.clear(kernel::Console::Color::Blue);
console.writeString("Hello world!\n");
console.writeString("a\nb\nc\n");
}
/** The beginning of the world... */
extern "C"
void
kmain()
{ }