pgd                66 bsp/hal/arm/arch/mmu.c 	paddr_t pg, pgd;
pgd                74 bsp/hal/arm/arch/mmu.c 	pgd = PGD_ALIGN(pg);
pgd                77 bsp/hal/arm/arch/mmu.c 	gap = (size_t)(pgd - pg);
pgd                80 bsp/hal/arm/arch/mmu.c 	page_free((paddr_t)(pgd + L1TBL_SIZE), (size_t)(L1TBL_SIZE - gap));
pgd                82 bsp/hal/arm/arch/mmu.c 	return pgd;
pgd               111 bsp/hal/arm/arch/mmu.c mmu_map(pgd_t pgd, paddr_t pa, vaddr_t va, size_t size, int type)
pgd               152 bsp/hal/arm/arch/mmu.c 		if (pte_present(pgd, va)) {
pgd               154 bsp/hal/arm/arch/mmu.c 			pte = vtopte(pgd, va);
pgd               161 bsp/hal/arm/arch/mmu.c 			pgd[PAGE_DIR(va)] = (uint32_t)pg | PDE_PRESENT;
pgd               189 bsp/hal/arm/arch/mmu.c 	pgd_t pgd;
pgd               194 bsp/hal/arm/arch/mmu.c 	pgd = (pgd_t)ptokv(pg);
pgd               195 bsp/hal/arm/arch/mmu.c 	memset(pgd, 0, L1TBL_SIZE);
pgd               199 bsp/hal/arm/arch/mmu.c 	memcpy(&pgd[i], &boot_pgd[i], (size_t)(L1TBL_SIZE - i * 4));
pgd               202 bsp/hal/arm/arch/mmu.c 	mmu_map(pgd, 0, 0, PAGE_SIZE, PG_SYSTEM);
pgd               203 bsp/hal/arm/arch/mmu.c 	return pgd;
pgd               210 bsp/hal/arm/arch/mmu.c mmu_terminate(pgd_t pgd)
pgd               219 bsp/hal/arm/arch/mmu.c 		pte = (pte_t)pgd[i];
pgd               225 bsp/hal/arm/arch/mmu.c 	page_free(kvtop(pgd), L1TBL_SIZE);
pgd               236 bsp/hal/arm/arch/mmu.c mmu_switch(pgd_t pgd)
pgd               238 bsp/hal/arm/arch/mmu.c 	paddr_t phys = kvtop(pgd);
pgd               250 bsp/hal/arm/arch/mmu.c mmu_extract(pgd_t pgd, vaddr_t virt, size_t size)
pgd               261 bsp/hal/arm/arch/mmu.c 		if (!pte_present(pgd, pg))
pgd               263 bsp/hal/arm/arch/mmu.c 		pte = vtopte(pgd, pg);
pgd               269 bsp/hal/arm/arch/mmu.c 	pte = vtopte(pgd, start);
pgd                65 bsp/hal/arm/include/mmu.h #define pte_present(pgd, virt)  (pgd[PAGE_DIR(virt)] & PDE_PRESENT)
pgd                69 bsp/hal/arm/include/mmu.h #define vtopte(pgd, virt) \
pgd                70 bsp/hal/arm/include/mmu.h             (pte_t)ptokv((pgd)[PAGE_DIR(virt)] & PDE_ADDRESS)
pgd                66 bsp/hal/ppc/include/mmu.h #define pte_present(pgd, virt)
pgd                70 bsp/hal/ppc/include/mmu.h #define vtopte(pgd, virt)
pgd                82 bsp/hal/x86/arch/mmu.c mmu_map(pgd_t pgd, paddr_t pa, vaddr_t va, size_t size, int type)
pgd               124 bsp/hal/x86/arch/mmu.c 		if (pte_present(pgd, va)) {
pgd               126 bsp/hal/x86/arch/mmu.c 			pte = vtopte(pgd, va);
pgd               133 bsp/hal/x86/arch/mmu.c 			pgd[PAGE_DIR(va)] = (uint32_t)pg | pde_flag;
pgd               161 bsp/hal/x86/arch/mmu.c 	pgd_t pgd;
pgd               167 bsp/hal/x86/arch/mmu.c 	pgd = (pgd_t)ptokv(pg);
pgd               168 bsp/hal/x86/arch/mmu.c 	memset(pgd, 0, PAGE_SIZE);
pgd               172 bsp/hal/x86/arch/mmu.c 	memcpy(&pgd[i], &boot_pgd[i], (size_t)(1024 - i));
pgd               173 bsp/hal/x86/arch/mmu.c 	return pgd;
pgd               180 bsp/hal/x86/arch/mmu.c mmu_terminate(pgd_t pgd)
pgd               189 bsp/hal/x86/arch/mmu.c 		pte = (pte_t)pgd[i];
pgd               195 bsp/hal/x86/arch/mmu.c 	page_free(kvtop(pgd), PAGE_SIZE);
pgd               206 bsp/hal/x86/arch/mmu.c mmu_switch(pgd_t pgd)
pgd               208 bsp/hal/x86/arch/mmu.c 	uint32_t phys = (uint32_t)kvtop(pgd);
pgd               220 bsp/hal/x86/arch/mmu.c mmu_extract(pgd_t pgd, vaddr_t va, size_t size)
pgd               231 bsp/hal/x86/arch/mmu.c 		if (!pte_present(pgd, pg))
pgd               233 bsp/hal/x86/arch/mmu.c 		pte = vtopte(pgd, pg);
pgd               239 bsp/hal/x86/arch/mmu.c 	pte = vtopte(pgd, start);
pgd                70 bsp/hal/x86/include/mmu.h #define pte_present(pgd, virt)  (pgd[PAGE_DIR(virt)] & PDE_PRESENT)
pgd                74 bsp/hal/x86/include/mmu.h #define vtopte(pgd, virt) \
pgd                75 bsp/hal/x86/include/mmu.h             (pte_t)ptokv(((uint32_t *)pgd)[PAGE_DIR(virt)] & PDE_ADDRESS)
pgd                72 sys/include/vm.h 	pgd_t		pgd;		/* page directory */
pgd               153 sys/mem/vm.c   	if (mmu_map(map->pgd, pa, seg->addr, size, PG_WRITE))
pgd               224 sys/mem/vm.c   	mmu_map(map->pgd, seg->phys, seg->addr,	seg->size, PG_UNMAP);
pgd               329 sys/mem/vm.c   		if (mmu_map(map->pgd, new_pa, seg->addr, seg->size,
pgd               343 sys/mem/vm.c   		if (mmu_map(map->pgd, seg->phys, seg->addr, seg->size,
pgd               436 sys/mem/vm.c   	if (mmu_map(curmap->pgd, pa, cur->addr, size, map_type)) {
pgd               470 sys/mem/vm.c   	if ((map->pgd = mmu_newmap()) == NO_PGD) {
pgd               495 sys/mem/vm.c   			mmu_map(map->pgd, seg->phys, seg->addr,
pgd               514 sys/mem/vm.c   		mmu_switch(kernel_map.pgd);
pgd               517 sys/mem/vm.c   	mmu_terminate(map->pgd);
pgd               617 sys/mem/vm.c   			if (mmu_map(new_map->pgd, dest->phys, dest->addr,
pgd               655 sys/mem/vm.c   		mmu_switch(map->pgd);
pgd               736 sys/mem/vm.c   	return mmu_extract(curtask->map->pgd, addr, size);
pgd               775 sys/mem/vm.c   	pgd_t pgd;
pgd               780 sys/mem/vm.c   	if ((pgd = mmu_newmap()) == NO_PGD)
pgd               782 sys/mem/vm.c   	kernel_map.pgd = pgd;
pgd               783 sys/mem/vm.c   	mmu_switch(pgd);