Skip to content

Commit fdbf401

Browse files
authored
fix(aarch64): disable SPAN by default (#9)
1 parent f1359df commit fdbf401

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/aarch64/init.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ pub unsafe fn init_mmu(root_paddr: PhysAddr) {
9191

9292
// Enable the MMU and turn on I-cache and D-cache
9393
SCTLR_EL1.modify(SCTLR_EL1::M::Enable + SCTLR_EL1::C::Cacheable + SCTLR_EL1::I::Cacheable);
94+
// Disable SPAN
95+
SCTLR_EL1.set(SCTLR_EL1.get() | (1 << 23));
9496
barrier::isb(barrier::SY);
9597
}
9698

0 commit comments

Comments
 (0)