feat(mm/zone): various additions

This commit is contained in:
Loïc Grégoire
2026-04-27 17:45:03 -04:00
parent 72856de38e
commit cfeb120410
4 changed files with 186 additions and 189 deletions
+11 -5
View File
@@ -15,11 +15,17 @@ pub const heap = private.heap;
// This should be fine on consumer hardware for at least a decade :^)
pub const Pfn = u32;
pub const Page = struct {
// Fields used when the page is free.
next_pfn: Pfn,
batch_next: Pfn,
batch_count: u8,
pub const Page = extern union {
free: extern struct {
// Fields used when the page is free.
next_pfn: Pfn,
batch_next: Pfn,
batch_count: u8,
},
alloced: extern struct {
slab_data: zone.Page,
},
};
pub const MapFlags = packed struct {