From 466996b2e1a4339093eb9124577d54d65ee26fa5 Mon Sep 17 00:00:00 2001 From: kenneth Date: Tue, 2 Nov 2021 12:01:59 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BF=AE=E5=A4=8D=E5=86=85=E5=AD=98?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E7=9A=84=E4=B8=80=E4=BA=9B=E4=B8=8D=E8=A7=84?= =?UTF-8?q?=E8=8C=83=E7=94=A8=E8=AF=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit layes修正为layers,alreay修正为already,Continous修正为Continuous等等 close #I4GHLR Signed-off-by: kenneth --- arch/arm/arm/include/los_arch_mmu.h | 2 +- arch/arm/arm/src/los_arch_mmu.c | 8 ++++---- kernel/base/vm/los_vm_dump.c | 4 ++-- kernel/base/vm/los_vm_fault.c | 2 +- kernel/base/vm/los_vm_scan.c | 4 ++-- kernel/include/los_membox.h | 2 +- kernel/include/los_memory.h | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/arch/arm/arm/include/los_arch_mmu.h b/arch/arm/arm/include/los_arch_mmu.h index 93b2fd34..61a0a215 100644 --- a/arch/arm/arm/include/los_arch_mmu.h +++ b/arch/arm/arm/include/los_arch_mmu.h @@ -71,5 +71,5 @@ VADDR_T *OsGFirstTableGet(VOID); #endif /* __cplusplus */ #endif /* __cplusplus */ -#endif /* __LOS_VM_PAGE_H__ */ +#endif /* __LOS_ARCH_MMU_H__ */ diff --git a/arch/arm/arm/src/los_arch_mmu.c b/arch/arm/arm/src/los_arch_mmu.c index b3991ce2..0e7647fe 100644 --- a/arch/arm/arm/src/los_arch_mmu.c +++ b/arch/arm/arm/src/los_arch_mmu.c @@ -618,7 +618,7 @@ STATIC UINT32 OsCvtPte2FlagsToAttrs(UINT32 flags) return mmuFlags; } -STATIC UINT32 OsMapL2PageContinous(PTE_T pte1, UINT32 flags, VADDR_T *vaddr, PADDR_T *paddr, UINT32 *count) +STATIC UINT32 OsMapL2PageContinuous(PTE_T pte1, UINT32 flags, VADDR_T *vaddr, PADDR_T *paddr, UINT32 *count) { PTE_T *pte2BasePtr = NULL; UINT32 archFlags; @@ -662,9 +662,9 @@ status_t LOS_ArchMmuMap(LosArchMmu *archMmu, VADDR_T vaddr, PADDR_T paddr, size_ l1Entry = OsGetPte1(archMmu->virtTtb, vaddr); if (OsIsPte1Invalid(l1Entry)) { OsMapL1PTE(archMmu, &l1Entry, vaddr, flags); - saveCounts = OsMapL2PageContinous(l1Entry, flags, &vaddr, &paddr, &count); + saveCounts = OsMapL2PageContinuous(l1Entry, flags, &vaddr, &paddr, &count); } else if (OsIsPte1PageTable(l1Entry)) { - saveCounts = OsMapL2PageContinous(l1Entry, flags, &vaddr, &paddr, &count); + saveCounts = OsMapL2PageContinuous(l1Entry, flags, &vaddr, &paddr, &count); } else { LOS_Panic("%s %d, unimplemented tt_entry %x\n", __FUNCTION__, __LINE__, l1Entry); } @@ -716,7 +716,7 @@ STATUS_T LOS_ArchMmuMove(LosArchMmu *archMmu, VADDR_T oldVaddr, VADDR_T newVaddr PADDR_T paddr = 0; if ((archMmu == NULL) || (oldVaddr == 0) || (newVaddr == 0) || (count == 0)) { - VM_ERR("invalid args: archMmu %p, oldVaddr %p, newVddr %p, count %d", + VM_ERR("invalid args: archMmu %p, oldVaddr %p, newVaddr %p, count %d", archMmu, oldVaddr, newVaddr, count); return LOS_NOK; } diff --git a/kernel/base/vm/los_vm_dump.c b/kernel/base/vm/los_vm_dump.c index 83ef92b4..f25ee21c 100644 --- a/kernel/base/vm/los_vm_dump.c +++ b/kernel/base/vm/los_vm_dump.c @@ -97,7 +97,7 @@ INT32 OsRegionOverlapCheckUnlock(LosVmSpace *space, LosVmMapRegion *region) if (((region->range.base + region->range.size) > regionTemp->range.base) && (region->range.base < (regionTemp->range.base + regionTemp->range.size))) { VM_ERR("overlap between regions:\n" - "flals:%#x base:%p size:%08x space:%p\n" + "flags:%#x base:%p size:%08x space:%p\n" "flags:%#x base:%p size:%08x space:%p", region->regionFlags, region->range.base, region->range.size, region->space, regionTemp->regionFlags, regionTemp->range.base, regionTemp->range.size, regionTemp->space); @@ -521,7 +521,7 @@ VOID OsVmPhysDump(VOID) PRINTK("active anon %d\n", seg->lruSize[VM_LRU_ACTIVE_ANON]); PRINTK("inactive anon %d\n", seg->lruSize[VM_LRU_INACTIVE_ANON]); PRINTK("active file %d\n", seg->lruSize[VM_LRU_ACTIVE_FILE]); - PRINTK("inactice file %d\n", seg->lruSize[VM_LRU_INACTIVE_FILE]); + PRINTK("inactive file %d\n", seg->lruSize[VM_LRU_INACTIVE_FILE]); } } PRINTK("\n\rpmm pages: total = %u, used = %u, free = %u\n", diff --git a/kernel/base/vm/los_vm_fault.c b/kernel/base/vm/los_vm_fault.c index ead6eff0..d6d9ab64 100644 --- a/kernel/base/vm/los_vm_fault.c +++ b/kernel/base/vm/los_vm_fault.c @@ -140,7 +140,7 @@ STATIC STATUS_T OsDoReadFault(LosVmMapRegion *region, LosVmPgFault *vmPgFault) return LOS_ERRNO_VM_NO_MEMORY; } -/* numap a page when cow happend only */ +/* unmap a page when cow happend only */ STATIC LosVmPage *OsCowUnmapOrg(LosArchMmu *archMmu, LosVmMapRegion *region, LosVmPgFault *vmf) { UINT32 intSave; diff --git a/kernel/base/vm/los_vm_scan.c b/kernel/base/vm/los_vm_scan.c index e179f8fe..0975baaa 100644 --- a/kernel/base/vm/los_vm_scan.c +++ b/kernel/base/vm/los_vm_scan.c @@ -77,7 +77,7 @@ VOID OsLruCacheAdd(LosFilePage *fpage, enum OsLruList lruType) LOS_SpinUnlockRestore(&physSeg->lruLock, intSave); } -/* dellete a lru node, caller need hold lru_lock */ +/* delete a lru node, caller need hold lru_lock */ VOID OsLruCacheDel(LosFilePage *fpage) { LosVmPhysSeg *physSeg = fpage->physSeg; @@ -175,7 +175,7 @@ VOID OsPageRefIncLocked(LosFilePage *fpage) LOS_SpinUnlockRestore(&fpage->physSeg->lruLock, intSave); } -/* page referced dec: (call by thrinker) +/* page referced dec: (call by shrinker) ----------inactive----------|----------active------------ [ref:0,act:0], [ref:1,act:0]|[ref:0,act:1], [ref:1,act:1] ref:1, act:1 --> ref:0, act:1 diff --git a/kernel/include/los_membox.h b/kernel/include/los_membox.h index 55c9989b..9d58cdd5 100644 --- a/kernel/include/los_membox.h +++ b/kernel/include/los_membox.h @@ -230,7 +230,7 @@ extern VOID LOS_ShowBox(VOID *pool); * * @param boxMem [IN] Type #VOID* Pointer to the calculate membox. * @param maxBlk [OUT] Type #UINT32* Record membox max block. - * @param blkCnt [OUT] Type #UINT32* Record membox block count alreay allocated. + * @param blkCnt [OUT] Type #UINT32* Record membox block count already allocated. * @param blkSize [OUT] Type #UINT32* Record membox block size. * * @retval #LOS_OK The heap status calculate success. diff --git a/kernel/include/los_memory.h b/kernel/include/los_memory.h index 8dd00599..e236e44b 100644 --- a/kernel/include/los_memory.h +++ b/kernel/include/los_memory.h @@ -59,7 +59,7 @@ extern "C" { /** * @ingroup los_memory - * The recored layes of function call. + * The recored layers of function call. */ #define LOS_RECORD_LR_CNT 3 #endif