summaryrefslogtreecommitdiff
path: root/stage3/fs.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/fs.c
parenta6669e496e46ef89673103b3330226c7d0201a1a (diff)
downloadcuddles-8b90c1f407b4f4aa3802858e23aa90d7dfbe17ad.tar.xz
bootinfo struct
Diffstat (limited to 'stage3/fs.c')
-rw-r--r--stage3/fs.c3
1 files changed, 2 insertions, 1 deletions
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);