mirror of
https://github.com/rcore-os/rCore-Tutorial-v3.git
synced 2024-11-24 10:26:25 +04:00
Add comments in ch5
This commit is contained in:
parent
5aee0ddfd3
commit
4387d128d8
@ -240,12 +240,12 @@ impl MemorySet {
|
||||
}
|
||||
memory_set
|
||||
}
|
||||
///Refresh TLB with `fence.vma`
|
||||
///Refresh TLB with `sfence.vma`
|
||||
pub fn activate(&self) {
|
||||
let satp = self.page_table.token();
|
||||
unsafe {
|
||||
satp::write(satp);
|
||||
asm!("fence.vma");
|
||||
asm!("sfence.vma");
|
||||
}
|
||||
}
|
||||
///Translate throuth pagetable
|
||||
|
Loading…
Reference in New Issue
Block a user