loader: map pfndb and cleanup

This commit is contained in:
Loïc Grégoire
2026-07-18 14:06:36 -04:00
parent 3c72101228
commit 96d2bee857
12 changed files with 159 additions and 187 deletions
+5
View File
@@ -6,6 +6,7 @@ pub const MemMap = struct {
Free,
Reserved,
LoaderReclaimable,
LoaderData,
AcpiNvs,
AcpiReclaimable,
};
@@ -16,6 +17,7 @@ pub const MemMap = struct {
};
entry_count: usize,
loader_memory_used: usize,
entries: [128]Entry,
};
@@ -27,6 +29,9 @@ pub const Framebuffer = struct {
bpp: u8,
};
// Kept in sync with the kernel
pub const page_struct_size = 16;
pub const KernelAddress = struct { physical_base: usize, virtual_base: usize };
/// RSDP on ACPI machines