Skip to content

Commit

Permalink
[fix] clippy error in aarch64 boot_el2
Browse files Browse the repository at this point in the history
  • Loading branch information
hky1999 committed Jan 1, 2025
1 parent aa2dacf commit 3984835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/axhal/src/platform/aarch64_common/boot_el2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ unsafe fn init_mmu_el2() {
TCR_EL2.write(TCR_EL2::PS::Bits_40 + tcr_flags0);
barrier::isb(barrier::SY);

let root_paddr = PhysAddr::from(BOOT_PT_L0.as_ptr() as usize).as_usize() as _;
let root_paddr = PhysAddr::from(&raw const BOOT_PT_L0 as usize).as_usize() as _;
TTBR0_EL2.set(root_paddr);

// Flush the entire TLB
Expand Down

0 comments on commit 3984835

Please sign in to comment.