From 8b90c1f407b4f4aa3802858e23aa90d7dfbe17ad Mon Sep 17 00:00:00 2001 From: Lizzy Fleckenstein Date: Thu, 11 Apr 2024 20:58:38 +0200 Subject: bootinfo struct --- stage3/init.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'stage3/init.c') 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); } -- cgit v1.2.3