From 32f629fb2dc193db0dc0657338bd0ddec5914f05 Mon Sep 17 00:00:00 2001 From: fduxiao <9294979+fduxiao@users.noreply.github.com> Date: Fri, 18 Apr 2025 00:03:28 -0400 Subject: [PATCH] Fix the missing '&' in post 09 --- blog/content/edition-2/posts/09-paging-implementation/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blog/content/edition-2/posts/09-paging-implementation/index.md b/blog/content/edition-2/posts/09-paging-implementation/index.md index b4fe3bf6..42a75f57 100644 --- a/blog/content/edition-2/posts/09-paging-implementation/index.md +++ b/blog/content/edition-2/posts/09-paging-implementation/index.md @@ -399,7 +399,7 @@ pub unsafe fn active_level_4_table(physical_memory_offset: VirtAddr) let virt = physical_memory_offset + phys.as_u64(); let page_table_ptr: *mut PageTable = virt.as_mut_ptr(); - unsafe { mut *page_table_ptr } + unsafe { &mut *page_table_ptr } } ```