Home
last modified time | relevance | path

Searched refs:archMmu (Results 1 – 21 of 21) sorted by relevance

/kernel/liteos_a/arch/arm/arm/src/
Dlos_arch_mmu.c50 LosArchMmu *archMmu; member
71 STATIC SPIN_LOCK_S *OsGetPteLock(LosArchMmu *archMmu, PADDR_T paddr, UINT32 *intSave) in OsGetPteLock() argument
83 lock = &archMmu->lock; in OsGetPteLock()
90 STATIC SPIN_LOCK_S *OsGetPte1Lock(LosArchMmu *archMmu, PADDR_T paddr, UINT32 *intSave) in OsGetPte1Lock() argument
92 return OsGetPteLock(archMmu, paddr, intSave); in OsGetPte1Lock()
103 STATIC SPIN_LOCK_S *OsGetPte1LockTmp(LosArchMmu *archMmu, PADDR_T paddr, UINT32 *intSave) in OsGetPte1LockTmp() argument
107 spinLock = OsGetPteLock(archMmu, paddr, intSave); in OsGetPte1LockTmp()
109 (VOID)archMmu; in OsGetPte1LockTmp()
129 STATIC INLINE SPIN_LOCK_S *OsGetPte2Lock(LosArchMmu *archMmu, PTE_T pte1, UINT32 *intSave) in OsGetPte2Lock() argument
132 return OsGetPteLock(archMmu, pa, intSave); in OsGetPte2Lock()
[all …]
Dlos_exc.c437 if (LOS_ArchMmuQuery(&space->archMmu, pageBase, &addr, NULL) != LOS_OK) { in OsDumpExcVaddrRegion()
636 if (LOS_ArchMmuQuery(&runspace->archMmu, regFP, &paddr, NULL) != LOS_OK) { in IsValidFP()
/kernel/liteos_a/arch/arm/arm/include/
Dlos_arch_mmu.h62 BOOL OsArchMmuInit(LosArchMmu *archMmu, VADDR_T *virtTtb);
63 STATUS_T LOS_ArchMmuQuery(const LosArchMmu *archMmu, VADDR_T vaddr, PADDR_T *paddr, UINT32 *flags);
64 STATUS_T LOS_ArchMmuUnmap(LosArchMmu *archMmu, VADDR_T vaddr, size_t count);
65 STATUS_T LOS_ArchMmuMap(LosArchMmu *archMmu, VADDR_T vaddr, PADDR_T paddr, size_t count, UINT32 fla…
66 STATUS_T LOS_ArchMmuChangeProt(LosArchMmu *archMmu, VADDR_T vaddr, size_t count, UINT32 flags);
67 STATUS_T LOS_ArchMmuMove(LosArchMmu *archMmu, VADDR_T oldVaddr, VADDR_T newVaddr, size_t count, UIN…
68 VOID LOS_ArchMmuContextSwitch(LosArchMmu *archMmu);
69 STATUS_T LOS_ArchMmuDestroy(LosArchMmu *archMmu);
/kernel/liteos_a/kernel/base/vm/
Dlos_vm_fault.c108 ret = LOS_ArchMmuQuery(&space->archMmu, vaddr, NULL, NULL); in OsDoReadFault()
126 ret = LOS_ArchMmuMap(&space->archMmu, vaddr, paddr, 1, in OsDoReadFault()
144 STATIC LosVmPage *OsCowUnmapOrg(LosArchMmu *archMmu, LosVmMapRegion *region, LosVmPgFault *vmf) in OsCowUnmapOrg() argument
157 mapInfo = OsGetMapInfo(fpage, archMmu, vaddr); in OsCowUnmapOrg()
161 LOS_ArchMmuUnmap(archMmu, vaddr, 1); in OsCowUnmapOrg()
164 LOS_ArchMmuUnmap(archMmu, vaddr, 1); in OsCowUnmapOrg()
189 ret = LOS_ArchMmuQuery(&space->archMmu, (VADDR_T)vmPgFault->vaddr, &oldPaddr, NULL); in OsDoCowFault()
191 oldPage = OsCowUnmapOrg(&space->archMmu, region, vmPgFault); in OsDoCowFault()
230 …ret = LOS_ArchMmuMap(&space->archMmu, (VADDR_T)vmPgFault->vaddr, newPaddr, 1, region->regionFlags); in OsDoCowFault()
271 ret = LOS_ArchMmuQuery(&space->archMmu, vmPgFault->vaddr, &paddr, NULL); in OsDoSharedFault()
[all …]
Dlos_vm_map.c148 return OsArchMmuInit(&vmSpace->archMmu, virtTtb); in OsVmSpaceInitCommon()
231 LOS_ListAdd(&space->archMmu.ptList, &(vmPage->node)); in OsCreateUserVmSpace()
295 if (LOS_ArchMmuQuery(&oldVmSpace->archMmu, vaddr, &paddr, &flags) != LOS_OK) { in LOS_VmSpaceClone()
304 LOS_ArchMmuUnmap(&oldVmSpace->archMmu, vaddr, 1); in LOS_VmSpaceClone()
305 … LOS_ArchMmuMap(&oldVmSpace->archMmu, vaddr, paddr, 1, flags & ~VM_MAP_REGION_FLAG_PERM_WRITE); in LOS_VmSpaceClone()
307 … LOS_ArchMmuMap(&newVmSpace->archMmu, vaddr, paddr, 1, flags & ~VM_MAP_REGION_FLAG_PERM_WRITE); in LOS_VmSpaceClone()
315 OsAddMapInfo(fpage, &newVmSpace->archMmu, vaddr); in LOS_VmSpaceClone()
481 LosArchMmu *archMmu = NULL; in LOS_PaddrQuery() local
484 archMmu = &g_kVmSpace.archMmu; in LOS_PaddrQuery()
487 archMmu = &space->archMmu; in LOS_PaddrQuery()
[all …]
Dlos_vm_filemap.c111 VOID OsAddMapInfo(LosFilePage *page, LosArchMmu *archMmu, VADDR_T vaddr) in OsAddMapInfo() argument
121 info->archMmu = archMmu; in OsAddMapInfo()
128 LosMapInfo *OsGetMapInfo(const LosFilePage *page, const LosArchMmu *archMmu, VADDR_T vaddr) in OsGetMapInfo() argument
134 if ((info->archMmu == archMmu) && (info->vaddr == vaddr) && (info->page == page)) { in OsGetMapInfo()
150 STATIC VOID OsPageCacheUnmap(LosFilePage *fpage, LosArchMmu *archMmu, VADDR_T vaddr) in OsPageCacheUnmap() argument
156 info = OsGetMapInfo(fpage, archMmu, vaddr); in OsPageCacheUnmap()
170 VOID OsVmmFileRemove(LosVmMapRegion *region, LosArchMmu *archMmu, VM_OFFSET_T pgoff) in OsVmmFileRemove() argument
188 status_t status = LOS_ArchMmuQuery(archMmu, vaddr, &paddr, NULL); in OsVmmFileRemove()
201 LOS_ArchMmuUnmap(archMmu, vaddr, 1); in OsVmmFileRemove()
204 OsPageCacheUnmap(fpage, archMmu, vaddr); in OsVmmFileRemove()
[all …]
Dlos_vm_syscall.c335 ret = LOS_ArchMmuChangeProt(&space->archMmu, vaddr, count, region->regionFlags); in LOS_DoMprotect()
443 status = LOS_ArchMmuMove(&space->archMmu, oldAddress, newAddr, in LOS_DoMremap()
475 status = LOS_ArchMmuMove(&space->archMmu, oldAddress, regionNew->range.base, in LOS_DoMremap()
Dlos_vm_dump.c224 ret = LOS_ArchMmuQuery(&space->archMmu, vaddr, &paddr, NULL); in OsUProcessPmUsage()
287 status = LOS_ArchMmuQuery(&space->archMmu, vaddr, &paddr, NULL); in OsCountRegionPages()
464 ttEntry = space->archMmu.virtTtb[l1Index]; in OsDumpPte()
Dshm.c355 ret = LOS_ArchMmuMap(&space->archMmu, va, pa, 1, regionFlags); in ShmVmmMapping()
393 LOS_ArchMmuUnmap(&space->archMmu, region->range.base, region->range.size >> PAGE_SHIFT); in OsShmRegionFree()
774 LOS_ArchMmuUnmap(&space->archMmu, region->range.base, region->range.size >> PAGE_SHIFT); in ShmDt()
Dlos_vm_scan.c49 LOS_ArchMmuUnmap(info->archMmu, info->vaddr, 1); in OsUnmapPageLocked()
/kernel/liteos_a/kernel/base/include/
Dlos_vm_filemap.h72 LosArchMmu *archMmu; member
196 LosMapInfo *OsGetMapInfo(const LosFilePage *page, const LosArchMmu *archMmu, VADDR_T vaddr);
197 VOID OsAddMapInfo(LosFilePage *page, LosArchMmu *archMmu, VADDR_T vaddr);
Dlos_vm_map.h82 void (*remove)(struct VmMapRegion *region, LosArchMmu *archMmu, VM_OFFSET_T offset);
122 LosArchMmu archMmu; /**< vm mapping physical memory */ member
Dlos_sched_pri.h443 UINTPTR archMmu; member
/kernel/liteos_a/drivers/char/mem/src/
Dmem.c74 … if (LOS_ArchMmuMap(&space->archMmu, vaddr, paddr, size >> PAGE_SHIFT, region->regionFlags) <= 0) { in MemMap()
/kernel/liteos_a/kernel/base/sched/
Dlos_sched.c406 if (newTask->archMmu != runTask->archMmu) { in SchedTaskSwitch()
407 LOS_ArchMmuContextSwitch((LosArchMmu *)newTask->archMmu); in SchedTaskSwitch()
/kernel/liteos_a/kernel/base/core/
Dlos_process.c123 taskCB->archMmu = (UINTPTR)&processCB->vmSpace->archMmu; in OsProcessAddNewTask()
1681 runTask->archMmu = (UINTPTR)&processCB->vmSpace->archMmu; in OsExecProcessVmSpaceRestore()
1682 LOS_ArchMmuContextSwitch((LosArchMmu *)runTask->archMmu); in OsExecProcessVmSpaceRestore()
1699 runTask->archMmu = (UINTPTR)&processCB->vmSpace->archMmu; in OsExecProcessVmSpaceReplace()
1700 LOS_ArchMmuContextSwitch((LosArchMmu *)runTask->archMmu); in OsExecProcessVmSpaceReplace()
2044 childProcessCB->vmSpace->archMmu.virtTtb = runProcessCB->vmSpace->archMmu.virtTtb; in OsCopyMM()
2045 childProcessCB->vmSpace->archMmu.physTtb = runProcessCB->vmSpace->archMmu.physTtb; in OsCopyMM()
/kernel/liteos_a/kernel/extended/vdso/src/
Dlos_vdso.c62 ret = LOS_ArchMmuMap(&(space->archMmu), vaddr, paddr, 1, flag); in OsVdsoMap()
/kernel/liteos_a/kernel/base/misc/
Dvm_shellcmd.c163 LOS_ArchMmuQuery(&processCB->vmSpace->archMmu, (VADDR_T)vaddr, &paddr, 0); in OsShellCmdV2P()
/kernel/liteos_a/kernel/extended/dynload/src/
Dlos_load_elf.c438 ret = LOS_ArchMmuQuery(&space->archMmu, vaddr, &paddr, NULL); in OsGetKernelVaddr()
775 (VOID)LOS_ArchMmuMap(&space->archMmu, vaddrTemp, paddrTemp, 1, region->regionFlags); in OsStackAlloc()
/kernel/liteos_a/fs/proc/os_adapt/
Dprocess_proc.c215 (void)LosBufPrintf(seqBuf, "VM TLB Asid: %u\n", vmSpace->archMmu.asid); in ProcessMemInfoRead()
/kernel/liteos_a/kernel/extended/liteipc/
Dhm_liteipc.c178 … 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()