mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
kernel: flush MMU when we rotate the SATP value
Signed-off-by: Sean <xobs@ci.betrusted.io>
This commit is contained in:
parent
ba320184b0
commit
bbab52be7f
1 changed files with 2 additions and 0 deletions
|
|
@ -111,7 +111,9 @@ impl MemoryMapping {
|
|||
/// As such, this will only have an observable effect once code returns
|
||||
/// to userspace.
|
||||
pub fn activate(self) -> Result<(), xous_kernel::Error> {
|
||||
unsafe { flush_mmu() };
|
||||
satp::write(self.satp);
|
||||
unsafe { flush_mmu() };
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue