Skip to content

Commit c16d14e

Browse files
heyuanjie87Rbb666
authored andcommitted
[mm]修复unmap内存时遗漏刷新地址转换表的问题,避免dcache(PIPT)出错
1 parent db359af commit c16d14e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/mm/mm_anon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ static void _pgmgr_pop_all(rt_varea_t varea)
134134
char *page_va = rt_kmem_p2v(page_pa);
135135
if (page_pa != ARCH_MAP_FAILED && page_va)
136136
{
137-
rt_hw_mmu_unmap(aspace, iter, ARCH_PAGE_SIZE);
137+
rt_varea_unmap_page(varea, iter);
138138
rt_pages_free(page_va, 0);
139139
}
140140
}

0 commit comments

Comments
 (0)