Fix the missing '&' in post 09

This commit is contained in:
fduxiao
2025-04-18 00:03:28 -04:00
parent 98f616964d
commit 32f629fb2d

View File

@@ -399,7 +399,7 @@ pub unsafe fn active_level_4_table(physical_memory_offset: VirtAddr)
let virt = physical_memory_offset + phys.as_u64(); let virt = physical_memory_offset + phys.as_u64();
let page_table_ptr: *mut PageTable = virt.as_mut_ptr(); let page_table_ptr: *mut PageTable = virt.as_mut_ptr();
unsafe { mut *page_table_ptr } unsafe { &mut *page_table_ptr }
} }
``` ```