diff options
Diffstat (limited to 'stage3/init.c')
-rw-r--r-- | stage3/init.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/stage3/init.c b/stage3/init.c index c65f08b..b49ba94 100644 --- a/stage3/init.c +++ b/stage3/init.c @@ -1,7 +1,9 @@ #include "def.h" -void kmain(); +#include "bootinfo.h" -void _start() +void kmain(struct bootinfo *info); + +void _start(struct bootinfo *info) { // enable SSE. long mode demands it is present u64 cr0; @@ -15,5 +17,5 @@ void _start() u16 fpu_cw = 0x37a; asm volatile("fldcw %0"::"m"(fpu_cw)); - kmain(); + kmain(info); } |