mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
Merge pull request #668 from betrusted-io/opt-mmu-real
remove some redundant mmu flush commands
This commit is contained in:
commit
1de1693b7f
2 changed files with 2 additions and 2 deletions
|
|
@ -258,7 +258,7 @@ 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() };
|
||||
// unsafe { flush_mmu() }; // redundant - adds 9% time to context switch benchmark when present!
|
||||
satp::write(self.satp);
|
||||
unsafe { flush_mmu() };
|
||||
Ok(())
|
||||
|
|
|
|||
|
|
@ -431,7 +431,7 @@ impl Swap {
|
|||
true,
|
||||
)
|
||||
.ok();
|
||||
unsafe { crate::arch::mem::flush_mmu() };
|
||||
// unsafe { crate::arch::mem::flush_mmu() }; // redundant?
|
||||
} else {
|
||||
already_mapped = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue