Skip to content

Commit

Permalink
Minor formatting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jounathaen committed Nov 25, 2024
1 parent 049ceaa commit bc19555
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/arch/x86_64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,10 @@ pub fn initialize_pagetables(mem: &mut [u8]) {
BOOT_PML4.into(),
PageTableFlags::PRESENT | PageTableFlags::WRITABLE,
);
pdpte[0].set_addr(BOOT_PDE.into(), PageTableFlags::PRESENT | PageTableFlags::WRITABLE);
pdpte[0].set_addr(
BOOT_PDE.into(),
PageTableFlags::PRESENT | PageTableFlags::WRITABLE,
);

for i in 0..512 {
let addr = PhysAddr::new(i as u64 * Page::<Size2MiB>::SIZE);
Expand Down

0 comments on commit bc19555

Please sign in to comment.