Barest of bare bones
This commit is contained in:
parent
3350ea2151
commit
d71037a775
5 changed files with 149 additions and 0 deletions
27
main.cc
Normal file
27
main.cc
Normal file
|
@ -0,0 +1,27 @@
|
|||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#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()
|
||||
{ }
|
||||
|
||||
|
||||
/**
|
||||
* The beginning of the world...
|
||||
*/
|
||||
extern "C"
|
||||
void
|
||||
kmain()
|
||||
{ }
|
Loading…
Add table
Add a link
Reference in a new issue