kernel: riscv: make sure to flush mmu

THe MMU flushing logic got disabled due to an experiment. Re-enable it
to ensure pages are consistent when shifting them across boundaries.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2021-05-19 20:55:45 +08:00
parent efe5a8b9e8
commit 6e57fbe29b

View file

@ -392,7 +392,7 @@ pub fn map_page_inner(
| (flags | MMUFlags::VALID | MMUFlags::D | MMUFlags::A).bits(),
)
};
// unsafe { flush_mmu() };
unsafe { flush_mmu() };
Ok(())
}