!317 chore: rename function OsCreateUserVmSpace
Merge pull request !317 from kenneth/los_vm_map
This commit is contained in:
commit
fa6993381a
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -204,7 +204,7 @@ BOOL OsUserVmSpaceInit(LosVmSpace *vmSpace, VADDR_T *virtTtb)
|
|||
return OsVmSpaceInitCommon(vmSpace, virtTtb);
|
||||
}
|
||||
|
||||
LosVmSpace *OsCreateUserVmSapce(VOID)
|
||||
LosVmSpace *OsCreateUserVmSpace(VOID)
|
||||
{
|
||||
BOOL retVal = FALSE;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue