summaryrefslogtreecommitdiff
path: root/src/kernel/entry.c
blob: e85460a76b93bace14426f915646409551865011 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "kernel.h"

// must be first entry in kernel.bin (0x8800) as stage 2 of
// the boot loader expects the entry point to be here!
//
// compilers (at least gcc) mess with the order of functions when
// compiling with optimization levels, so kernel_main ends up somewhere
// in the first compilation unit. I didn't find an elegant way (but for
// an ld script with custom section and some compiler specific attributes
// how to solve this issue). This solution here is sort of a nice
// workaround working no matter what the compilers try to do (of course
// till we get optimization across compilation units that is)
void kernel_entry( void ) 
{
	kernel_main( );
}