forktree worked with depth=3 on k210 platform.

This commit is contained in:
Yifan Wu 2020-12-11 16:14:14 +08:00
parent 48a11e53ff
commit a3496698b3
6 changed files with 62 additions and 17 deletions

View file

@ -212,7 +212,7 @@ impl MemorySet {
pub fn translate(&self, vpn: VirtPageNum) -> Option<PageTableEntry> {
self.page_table.translate(vpn)
}
pub fn clear(&mut self) {
pub fn recycle_data_pages(&mut self) {
//*self = Self::new_bare();
self.areas.clear();
}