feat(mm/phys): implement alloc and free

This commit is contained in:
Loïc Grégoire
2026-04-03 21:16:53 -04:00
parent 5b60f08db5
commit d2bc8f2bf8
6 changed files with 185 additions and 15 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ const AllocatingSource = struct {
flags: mm.MapFlags,
pub fn next(self: *const AllocatingSource, _: b.VAddr) MapItem {
const pa = mi.phys.alloc_page();
const pa = mi.phys.alloc();
return .{
.pa = pa,
.len = mm.page_size,