mirror of
https://github.com/rdmsr/zag.git
synced 2026-10-31 23:38:21 +00:00
feat(mm/phys): implement alloc and free
This commit is contained in:
@@ -133,7 +133,7 @@ pub fn RadixPmap(comptime Impl: type) type {
|
||||
return error.PageNotMapped;
|
||||
}
|
||||
|
||||
const new_table_pa = mi.phys.alloc_page();
|
||||
const new_table_pa = mi.phys.alloc();
|
||||
const table_ptr: [*]Impl.Pte = @ptrFromInt(mm.p2v(new_table_pa));
|
||||
@memset(table_ptr[0..entries_per_table], std.mem.zeroes(Impl.Pte));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user