diff --git a/kernel/base/core/los_process.c b/kernel/base/core/los_process.c index abdf579c..d6699b46 100644 --- a/kernel/base/core/los_process.c +++ b/kernel/base/core/los_process.c @@ -582,7 +582,7 @@ STATIC UINT32 OsInitPCB(LosProcessCB *processCB, UINT32 mode, UINT16 priority, c #ifdef LOSCFG_KERNEL_VM if (OsProcessIsUserMode(processCB)) { - processCB->vmSpace = OsCreateUserVmSapce(); + processCB->vmSpace = OsCreateUserVmSpace(); if (processCB->vmSpace == NULL) { processCB->processStatus = OS_PROCESS_FLAG_UNUSED; return LOS_ENOMEM; diff --git a/kernel/base/include/los_vm_map.h b/kernel/base/include/los_vm_map.h index 4d998231..140249b3 100644 --- a/kernel/base/include/los_vm_map.h +++ b/kernel/base/include/los_vm_map.h @@ -286,7 +286,7 @@ STATUS_T LOS_RegionFree(LosVmSpace *space, LosVmMapRegion *region); STATUS_T LOS_VmSpaceFree(LosVmSpace *space); STATUS_T LOS_VaddrToPaddrMmap(LosVmSpace *space, VADDR_T vaddr, PADDR_T paddr, size_t len, UINT32 flags); BOOL OsUserVmSpaceInit(LosVmSpace *vmSpace, VADDR_T *virtTtb); -LosVmSpace *OsCreateUserVmSapce(VOID); +LosVmSpace *OsCreateUserVmSpace(VOID); STATUS_T LOS_VmSpaceClone(LosVmSpace *oldVmSpace, LosVmSpace *newVmSpace); STATUS_T LOS_UserSpaceVmAlloc(LosVmSpace *space, size_t size, VOID **ptr, UINT8 align_log2, UINT32 regionFlags); LosMux *OsGVmSpaceMuxGet(VOID); diff --git a/kernel/base/vm/los_vm_map.c b/kernel/base/vm/los_vm_map.c index 566a7985..d1b4b567 100644 --- a/kernel/base/vm/los_vm_map.c +++ b/kernel/base/vm/los_vm_map.c @@ -204,7 +204,7 @@ BOOL OsUserVmSpaceInit(LosVmSpace *vmSpace, VADDR_T *virtTtb) return OsVmSpaceInitCommon(vmSpace, virtTtb); } -LosVmSpace *OsCreateUserVmSapce(VOID) +LosVmSpace *OsCreateUserVmSpace(VOID) { BOOL retVal = FALSE; diff --git a/kernel/extended/dynload/src/los_exec_elf.c b/kernel/extended/dynload/src/los_exec_elf.c index f1934daf..44b34395 100644 --- a/kernel/extended/dynload/src/los_exec_elf.c +++ b/kernel/extended/dynload/src/los_exec_elf.c @@ -142,7 +142,7 @@ INT32 LOS_DoExecveFile(const CHAR *fileName, CHAR * const *argv, CHAR * const *e } #endif - loadInfo.newSpace = OsCreateUserVmSapce(); + loadInfo.newSpace = OsCreateUserVmSpace(); if (loadInfo.newSpace == NULL) { PRINT_ERR("%s %d, failed to allocate new vm space\n", __FUNCTION__, __LINE__); return -ENOMEM;