Searched refs:V2P (Results 1 – 4 of 4) sorted by relevance
/xv6-public/ |
H A D | vm.c | 52 *pde = V2P(pgtab) | PTE_P | PTE_W | PTE_U; in walkpgdir() 112 { (void*)KERNLINK, V2P(KERNLINK), V2P(data), 0}, // kern text+rodata 113 { (void*)data, V2P(data), PHYSTOP, PTE_W}, // kern data+memory 152 lcr3(V2P(kpgdir)); // switch to the kernel page table in switchkvm() 176 lcr3(V2P(p->pgdir)); // switch to process's address space in switchuvm() 191 mappages(pgdir, 0, PGSIZE, V2P(mem), PTE_W|PTE_U); in inituvm() 241 if(mappages(pgdir, (char*)a, PGSIZE, V2P(mem), PTE_W|PTE_U) < 0){ in allocuvm() 335 if(mappages(d, (void*)i, PGSIZE, V2P(mem), flags) < 0) { in copyuvm()
|
H A D | main.c | 87 *(int**)(code-12) = (void *) V2P(entrypgdir); in startothers() 89 lapicstartap(c->apicid, V2P(code)); in startothers()
|
H A D | memlayout.h | 11 #define V2P(a) (((uint) (a)) - KERNBASE) macro
|
H A D | kalloc.c | 64 if((uint)v % PGSIZE || v < end || V2P(v) >= PHYSTOP) in kfree()
|