mirror of
https://github.com/rdmsr/zag.git
synced 2026-10-30 14:58:21 +00:00
feat(mm/phys): implement alloc and free
This commit is contained in:
@@ -98,7 +98,7 @@ pub fn init_kernel() void {
|
||||
const higher_half_start = phys_to_virt(0);
|
||||
const higher_half_size: usize = 256 * (1 << 39);
|
||||
|
||||
mi.kernel_pmap.impl.root_pa = mi.phys.alloc_page();
|
||||
mi.kernel_pmap.impl.root_pa = mi.phys.alloc();
|
||||
const table_ptr: [*]u64 = @ptrFromInt(mm.p2v(mi.kernel_pmap.impl.root_pa));
|
||||
@memset(table_ptr[0..512], 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user