Add comments in ch5

pull/66/head
hypocrasy 3 years ago
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…
Cancel
Save