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/fs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'stage3/fs.c') diff --git a/stage3/fs.c b/stage3/fs.c index d96d014..341a478 100644 --- a/stage3/fs.c +++ b/stage3/fs.c @@ -3,12 +3,13 @@ #include "string.h" #include "memory.h" #include "heap.h" +#include "bootinfo.h" #define FS_WALKER(X) bool (X)(str filename, u64 lba, usize fsize, usize fsect, void *varg) void fs_walk(FS_WALKER(*fun), void *arg) { - u64 lba = (*(u32 *) (0x1000-10-8))/512; + u64 lba = bootinfo->ksize/512; for (;;) { u8 *info = ata_read_full(lba, 1); -- cgit v1.2.3