summaryrefslogtreecommitdiff
path: root/stage3/init.c
diff options
context:
space:
mode:
authorLizzy Fleckenstein <lizzy@vlhl.dev>2024-04-11 20:58:38 +0200
committerLizzy Fleckenstein <lizzy@vlhl.dev>2024-04-11 21:05:47 +0200
commit8b90c1f407b4f4aa3802858e23aa90d7dfbe17ad (patch)
tree4080e975e33df6f3c57ff5f3486f97923c9bbbe3 /stage3/init.c
parenta6669e496e46ef89673103b3330226c7d0201a1a (diff)
downloadcuddles-8b90c1f407b4f4aa3802858e23aa90d7dfbe17ad.tar.xz
bootinfo struct
Diffstat (limited to 'stage3/init.c')
-rw-r--r--stage3/init.c8
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);
}