fix: 修改MMU模块的注释错误
修改los_arch_mmu.c中的page_idx 为scanIndex,修改pmm_alloc_page为LOS_PhysPageAlloc。 fix #I4KMMJ Signed-off-by: kenneth <zhushangyuan@huawei.com>
This commit is contained in:
parent
f88608e5a4
commit
1a8e22dcf1
|
@ -177,7 +177,7 @@ STATIC VOID OsTryUnmapL1PTE(const LosArchMmu *archMmu, vaddr_t vaddr, UINT32 sca
|
||||||
/*
|
/*
|
||||||
* Check if all pages related to this l1 entry are deallocated.
|
* Check if all pages related to this l1 entry are deallocated.
|
||||||
* We only need to check pages that we did not clear above starting
|
* We only need to check pages that we did not clear above starting
|
||||||
* from page_idx and wrapped around SECTION.
|
* from scanIndex and wrapped around SECTION.
|
||||||
*/
|
*/
|
||||||
UINT32 l1Index;
|
UINT32 l1Index;
|
||||||
PTE_T l1Entry;
|
PTE_T l1Entry;
|
||||||
|
|
|
@ -193,7 +193,7 @@ status_t OsDoCowFault(LosVmMapRegion *region, LosVmPgFault *vmPgFault)
|
||||||
|
|
||||||
newPage = LOS_PhysPageAlloc();
|
newPage = LOS_PhysPageAlloc();
|
||||||
if (newPage == NULL) {
|
if (newPage == NULL) {
|
||||||
VM_ERR("pmm_alloc_page fail");
|
VM_ERR("LOS_PhysPageAlloc failed");
|
||||||
ret = LOS_ERRNO_VM_NO_MEMORY;
|
ret = LOS_ERRNO_VM_NO_MEMORY;
|
||||||
goto ERR_OUT;
|
goto ERR_OUT;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue