浏览代码

Merge branch 'master' into patch-add-vm-area

fslongjin 2 年之前
父节点
当前提交
aa1046afae
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      kernel/mm/mmap.c

+ 1 - 0
kernel/mm/mmap.c

@@ -292,6 +292,7 @@ void mm_unmap_proc_table(ul proc_page_table_addr, bool is_phys, ul virt_addr_sta
                 {
                     *pde_ptr = 0;
                     length_unmapped += PAGE_2M_SIZE;
+                    pgt_num.num_PTE -= 512;
                 }
             }