mirror of
https://github.com/rdmsr/zag.git
synced 2026-10-29 14:38:21 +00:00
loader: map pfndb and cleanup
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user