mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-09 19:36:47 +00:00
bugfix: 当待释放的内存区域中同时存在4K页和2M页时,会释放错误数量的4K页的问题
This commit is contained in:
parent
4a6924d7dd
commit
47f45c2826
@ -286,6 +286,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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user