Home
last modified time | relevance | path

Searched refs:pg (Results 1 – 7 of 7) sorted by relevance

/sys/kern/
Dpalloc.c95 FreePage *pg; in PAlloc_AddRegion() local
155 pg = (void *)(start + i); in PAlloc_AddRegion()
156 pg->magic = FREEPAGE_MAGIC_FREE; in PAlloc_AddRegion()
161 LIST_INSERT_HEAD(&freeList, pg, entries); in PAlloc_AddRegion()
172 PAllocGetInfo(void *pg) in PAllocGetInfo() argument
174 uintptr_t entry = (uintptr_t)DMVA2PA(pg) / PGSIZE; in PAllocGetInfo()
191 FreePage *pg; in PAlloc_AllocPage() local
194 pg = LIST_FIRST(&freeList); in PAlloc_AllocPage()
195 ASSERT(pg != NULL); in PAlloc_AllocPage()
196 LIST_REMOVE(pg, entries); in PAlloc_AllocPage()
[all …]
Dloader.c190 void *pg; in Loader_LoadInit() local
193 pg = PAlloc_AllocPage(); in Loader_LoadInit()
194 if (!pg) in Loader_LoadInit()
201 status = VFS_Read(initvn, pg, 0, 1024); in Loader_LoadInit()
218 Loader_Load(thr, initvn, pg, 1024); in Loader_LoadInit()
Dsyscall.c72 void *pg; in Syscall_Spawn() local
121 pg = PAlloc_AllocPage(); in Syscall_Spawn()
122 if (!pg) { in Syscall_Spawn()
129 if (!Loader_CheckHeader(pg)) { in Syscall_Spawn()
131 PAlloc_Release(pg); in Syscall_Spawn()
149 Loader_Load(thr, file, pg, 1024); in Syscall_Spawn()
/sys/amd64/
Dxmem.c105 void *pg = PAlloc_AllocPage(); in XMem_Allocate() local
106 if (pg == NULL) in XMem_Allocate()
109 PMap_SystemMap(DMVA2PA((uint64_t)pg), xmem->base + off, 1, 0); in XMem_Allocate()
Dpmap.c440 void *pg = PAlloc_AllocPage(); in PMap_AllocMap() local
441 *entry = (uint64_t)DMVA2PA(pg) | PTE_P | PTE_U | flags; in PMap_AllocMap()
/sys/include/
Dkmem.h21 void PAlloc_Retain(void *pg);
22 void PAlloc_Release(void *pg);
/
DSConstruct64 env.Append(CPPFLAGS = [ "-pg" ])
65 env.Append(LINKFLAGS = [ "-pg" ])