/kernel/liteos_a/kernel/base/vm/ |
D | los_vm_map.c | 62 return OsCurrProcessGet()->vmSpace; in LOS_CurrSpaceGet() 134 STATIC BOOL OsVmSpaceInitCommon(LosVmSpace *vmSpace, VADDR_T *virtTtb) in OsVmSpaceInitCommon() argument 136 … LOS_RbInitTree(&vmSpace->regionRbTree, OsRegionRbCmpKeyFn, OsRegionRbFreeFn, OsRegionRbGetKeyFn); in OsVmSpaceInitCommon() 138 status_t retval = LOS_MuxInit(&vmSpace->regionMux, NULL); in OsVmSpaceInitCommon() 145 LOS_ListAdd(&g_vmSpaceList, &vmSpace->node); in OsVmSpaceInitCommon() 148 return OsArchMmuInit(&vmSpace->archMmu, virtTtb); in OsVmSpaceInitCommon() 159 BOOL OsKernVmSpaceInit(LosVmSpace *vmSpace, VADDR_T *virtTtb) in OsKernVmSpaceInit() argument 161 vmSpace->base = KERNEL_ASPACE_BASE; in OsKernVmSpaceInit() 162 vmSpace->size = KERNEL_ASPACE_SIZE; in OsKernVmSpaceInit() 163 vmSpace->mapBase = KERNEL_VMM_BASE; in OsKernVmSpaceInit() [all …]
|
D | los_vm_syscall.c | 55 if (len > OsCurrProcessGet()->vmSpace->mapSize) { in OsCheckMMapParams() 112 LosVmSpace *vmSpace = OsCurrProcessGet()->vmSpace; in LOS_MMap() local 132 (VOID)LOS_MuxAcquire(&vmSpace->regionMux); in LOS_MMap() 134 status = OsUserHeapFree(vmSpace, vaddr, len); in LOS_MMap() 141 newRegion = LOS_RegionAlloc(vmSpace, vaddr, len, regionFlags, pgoff); in LOS_MMap() 156 LOS_RbDelNode(&vmSpace->regionRbTree, &newRegion->rbNode); in LOS_MMap() 157 LOS_RegionFree(vmSpace, newRegion); in LOS_MMap() 163 (VOID)LOS_MuxRelease(&vmSpace->regionMux); in LOS_MMap() 173 return OsUnMMap(OsCurrProcessGet()->vmSpace, addr, size); in LOS_UnMMap() 205 LosVmSpace *space = OsCurrProcessGet()->vmSpace; in LOS_DoBrk() [all …]
|
D | oom.c | 58 (VOID)LOS_MuxAcquire(&candidateProcess->vmSpace->regionMux); in OomScoreProcess() 61 OsUProcessPmUsage(candidateProcess->vmSpace, NULL, &actualPm); in OomScoreProcess() 63 (VOID)LOS_MuxRelease(&candidateProcess->vmSpace->regionMux); in OomScoreProcess()
|
D | shm.c | 533 LosVmSpace *space = OsCurrProcessGet()->vmSpace; in ShmatVmmAlloc() 748 LosVmSpace *space = OsCurrProcessGet()->vmSpace; in ShmDt()
|
D | los_vm_dump.c | 267 if (processCB->vmSpace == space) { in OsGetPIDByAspace()
|
/kernel/liteos_a/kernel/extended/vdso/src/ |
D | los_vdso.c | 80 if ((processCB == NULL) || (processCB->vmSpace == NULL)) { in OsVdsoLoad() 84 (VOID)LOS_MuxAcquire(&processCB->vmSpace->regionMux); in OsVdsoLoad() 86 vdsoRegion = LOS_RegionAlloc(processCB->vmSpace, 0, g_vdsoSize, flag, 0); in OsVdsoLoad() 93 ret = OsVdsoMap(processCB->vmSpace, g_vdsoSize, LOS_PaddrQuery((VOID *)(&__vdso_data_start)), in OsVdsoLoad() 96 ret = LOS_RegionFree(processCB->vmSpace, vdsoRegion); in OsVdsoLoad() 104 (VOID)LOS_MuxRelease(&processCB->vmSpace->regionMux); in OsVdsoLoad()
|
/kernel/liteos_a/kernel/base/core/ |
D | los_info.c | 113 …IC VOID GetProcessMemInfo(ProcessInfo *pcbInfo, const LosProcessCB *processCB, LosVmSpace *vmSpace) in GetProcessMemInfo() argument 120 } else if (vmSpace == LOS_GetKVmSpace()) { in GetProcessMemInfo() 121 (VOID)OsShellCmdProcessPmUsage(vmSpace, &pcbInfo->shareMem, &pcbInfo->physicalMem); in GetProcessMemInfo() 124 pcbInfo->virtualMem = OsShellCmdProcessVmUsage(vmSpace); in GetProcessMemInfo() 129 if (OsShellCmdProcessPmUsage(vmSpace, &pcbInfo->shareMem, &pcbInfo->physicalMem) == 0) { in GetProcessMemInfo() 188 GetProcessMemInfo(&threadInfo->processInfo, processCB, processCB->vmSpace); in OsGetProcessThreadInfo() 218 LosVmSpace *vmSpace = processCB->vmSpace; local 223 GetProcessMemInfo(pcbInfo, processCB, vmSpace);
|
D | los_process.c | 123 taskCB->archMmu = (UINTPTR)&processCB->vmSpace->archMmu; in OsProcessAddNewTask() 403 (VOID)OsVmSpaceRegionFree(processCB->vmSpace); in OsProcessResourcesToFree() 645 space = processCB->vmSpace; in OsProcessCBRecycleToFree() 647 processCB->vmSpace = NULL; in OsProcessCBRecycleToFree() 754 processCB->vmSpace = OsCreateUserVmSpace(); in OsInitPCB() 755 if (processCB->vmSpace == NULL) { in OsInitPCB() 760 processCB->vmSpace = LOS_GetKVmSpace(); in OsInitPCB() 1659 region = LOS_RegionAlloc(processCB->vmSpace, 0, stackSize, in OsUserInitStackAlloc() 1680 processCB->vmSpace = oldSpace; in OsExecProcessVmSpaceRestore() 1681 runTask->archMmu = (UINTPTR)&processCB->vmSpace->archMmu; in OsExecProcessVmSpaceRestore() [all …]
|
/kernel/liteos_a/kernel/base/include/ |
D | los_vm_map.h | 257 STATIC INLINE BOOL OsIsVmRegionEmpty(LosVmSpace *vmSpace) in OsIsVmRegionEmpty() argument 259 if (vmSpace->regionRbTree.ulNodes == 0) { in OsIsVmRegionEmpty() 272 INT32 OsUserHeapFree(LosVmSpace *vmSpace, VADDR_T addr, size_t len); 273 VADDR_T OsAllocRange(LosVmSpace *vmSpace, size_t len); 274 VADDR_T OsAllocSpecificRange(LosVmSpace *vmSpace, VADDR_T vaddr, size_t len, UINT32 regionFlags); 280 LosVmMapRegion *LOS_RegionRangeFind(LosVmSpace *vmSpace, VADDR_T addr, size_t len); 281 LosVmMapRegion *LOS_RegionFind(LosVmSpace *vmSpace, VADDR_T addr); 283 LosVmMapRegion *LOS_RegionAlloc(LosVmSpace *vmSpace, VADDR_T vaddr, size_t len, UINT32 regionFlags,… 291 BOOL OsUserVmSpaceInit(LosVmSpace *vmSpace, VADDR_T *virtTtb);
|
D | los_process_pri.h | 114 LosVmSpace *vmSpace; /**< VMM space for processes */ member 439 return processCB->vmSpace; in OsProcessVmSpaceGet()
|
/kernel/liteos_a/fs/proc/os_adapt/ |
D | process_proc.c | 196 LosVmSpace *vmSpace = (LosVmSpace *)LOS_MemAlloc(m_aucSysMem1, size); in ProcessMemInfoRead() local 197 if (vmSpace == NULL) { in ProcessMemInfoRead() 200 (void)memset_s(vmSpace, size, 0, size); in ProcessMemInfoRead() 201 LosVmMapRegion *heap = (LosVmMapRegion *)((char *)vmSpace + sizeof(LosVmSpace)); in ProcessMemInfoRead() 206 (void)LOS_MemFree(m_aucSysMem1, vmSpace); in ProcessMemInfoRead() 209 (void)memcpy_s(vmSpace, sizeof(LosVmSpace), pcb->vmSpace, sizeof(LosVmSpace)); in ProcessMemInfoRead() 210 (void)memcpy_s(heap, sizeof(LosVmMapRegion), pcb->vmSpace->heap, sizeof(LosVmMapRegion)); in ProcessMemInfoRead() 213 (void)LosBufPrintf(seqBuf, "\nVMSpaceSize: %u byte\n", vmSpace->size); in ProcessMemInfoRead() 214 (void)LosBufPrintf(seqBuf, "VMSpaceMapSize: %u byte\n", vmSpace->mapSize); in ProcessMemInfoRead() 215 (void)LosBufPrintf(seqBuf, "VM TLB Asid: %u\n", vmSpace->archMmu.asid); in ProcessMemInfoRead() [all …]
|
/kernel/liteos_a/kernel/base/misc/ |
D | vm_shellcmd.c | 101 if (!OsProcessIsUnused(processCB) && (processCB->vmSpace != NULL)) { in OsDoDumpVm() 102 OsDumpAspace(processCB->vmSpace); in OsDoDumpVm() 163 LOS_ArchMmuQuery(&processCB->vmSpace->archMmu, (VADDR_T)vaddr, &paddr, 0); in OsShellCmdV2P()
|
/kernel/liteos_a/arch/arm/arm/src/ |
D | los_exc.c | 299 lastRegion = LOS_RegionFind(runProcess->vmSpace, curRegion->range.base - 1); in OsGetTextRegionBase() 334 runProcess->vmSpace->base, in OsExcSysInfo() 335 runProcess->vmSpace->base + runProcess->vmSpace->size, in OsExcSysInfo() 356 region = LOS_RegionFind(runProcess->vmSpace, (VADDR_T)excBufAddr->PC); in OsExcSysInfo() 364 region = LOS_RegionFind(runProcess->vmSpace, (VADDR_T)excBufAddr->ULR); in OsExcSysInfo() 502 runspace = runProcess->vmSpace; in OsDumpProcessUsedMemNode() 631 LosVmSpace *runspace = runProcess->vmSpace; in IsValidFP() 725 region = LOS_RegionFind(runProcess->vmSpace, (VADDR_T)ip); in OsGetUsrIpInfo()
|
/kernel/liteos_a/kernel/extended/liteipc/ |
D | hm_liteipc.c | 163 (VOID)LOS_MuxAcquire(&pcb->vmSpace->regionMux); in DoIpcMmap() 178 … STATUS_T err = LOS_ArchMmuMap(&pcb->vmSpace->archMmu, uva + (i << PAGE_SHIFT), pa, 1, uflags); in DoIpcMmap() 190 (VOID)LOS_ArchMmuUnmap(&pcb->vmSpace->archMmu, uva + (i << PAGE_SHIFT), 1); in DoIpcMmap() 195 (VOID)LOS_MuxRelease(&pcb->vmSpace->regionMux); in DoIpcMmap() 215 regionTemp = LOS_RegionFind(pcb->vmSpace, (VADDR_T)(UINTPTR)ipcInfo->pool.uvaddr); in LiteIpcMmap() 217 (VOID)LOS_RegionFree(pcb->vmSpace, regionTemp); in LiteIpcMmap()
|
/kernel/liteos_a/syscall/ |
D | syscall_pub.h | 56 LosVmSpace *__aspace = OsCurrProcessGet()->vmSpace; \
|