From 1a8e22dcf15944153e013d004fd7bbf24557a8c7 Mon Sep 17 00:00:00 2001 From: kenneth Date: Fri, 3 Dec 2021 11:07:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9MMU=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E7=9A=84=E6=B3=A8=E9=87=8A=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改los_arch_mmu.c中的page_idx 为scanIndex,修改pmm_alloc_page为LOS_PhysPageAlloc。 fix #I4KMMJ Signed-off-by: kenneth --- arch/arm/arm/src/los_arch_mmu.c | 2 +- kernel/base/vm/los_vm_fault.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/arm/src/los_arch_mmu.c b/arch/arm/arm/src/los_arch_mmu.c index 0e7647fe..43703c57 100644 --- a/arch/arm/arm/src/los_arch_mmu.c +++ b/arch/arm/arm/src/los_arch_mmu.c @@ -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. * 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; PTE_T l1Entry; diff --git a/kernel/base/vm/los_vm_fault.c b/kernel/base/vm/los_vm_fault.c index ee24650c..47eab9d7 100644 --- a/kernel/base/vm/los_vm_fault.c +++ b/kernel/base/vm/los_vm_fault.c @@ -193,7 +193,7 @@ status_t OsDoCowFault(LosVmMapRegion *region, LosVmPgFault *vmPgFault) newPage = LOS_PhysPageAlloc(); if (newPage == NULL) { - VM_ERR("pmm_alloc_page fail"); + VM_ERR("LOS_PhysPageAlloc failed"); ret = LOS_ERRNO_VM_NO_MEMORY; goto ERR_OUT; }