Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/aarch64/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ pub unsafe fn init_mmu(root_paddr: PhysAddr) {

// Enable the MMU and turn on I-cache and D-cache
SCTLR_EL1.modify(SCTLR_EL1::M::Enable + SCTLR_EL1::C::Cacheable + SCTLR_EL1::I::Cacheable);
// Enable SPAN
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a bit confused. Are we going to enable SPAN or disable it? @guoweikang

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok,l will reply you later

SCTLR_EL1.set(SCTLR_EL1.get() | (1 << 23));
barrier::isb(barrier::SY);
}

Expand Down