Skip to content

Commit

Permalink
Merge pull request #1557 from sarahspberrypi/fix-print_page_table_ent…
Browse files Browse the repository at this point in the history
…ries

fix(paging): support huge pages in debug function
  • Loading branch information
mkroening authored Jan 14, 2025
2 parents b00a5e1 + 3be175d commit 1c8d07a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arch/x86_64/mm/paging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ unsafe fn print_page_table_entries(page_table_indices: &[PageTableIndex]) {
let page_table_index = u16::from(page_table_index);
println!("{indent}L{level} Entry {page_table_index}: {entry:?}");

let phys = entry.frame().unwrap().start_address();
let phys = entry.addr();
let virt = x86_64::VirtAddr::new(phys.as_u64());
pt = unsafe { &*virt.as_mut_ptr() };
}
Expand Down

0 comments on commit 1c8d07a

Please sign in to comment.