summaryrefslogtreecommitdiff
path: root/src/kernel/entry.c
blob: d0e75a76dcb9b4f3a9d8dffa36cb9c94215fc9b9 (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 b 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 elegand 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( );
}