Lines Matching refs:vaddr
117 void print_pte_vaddr (unsigned long vaddr) in print_pte_vaddr() argument
119 pr_cont(" vaddr=%lx [%02lx]", vaddr, sun3_get_segmap (vaddr)); in print_pte_vaddr()
120 print_pte (__pte (sun3_get_pte (vaddr))); in print_pte_vaddr()
281 inline void mmu_emu_map_pmeg (int context, int vaddr) in mmu_emu_map_pmeg() argument
287 vaddr &= ~SUN3_PMEG_MASK; in mmu_emu_map_pmeg()
296 curr_pmeg, context, vaddr); in mmu_emu_map_pmeg()
308 if(vaddr >= PAGE_OFFSET) { in mmu_emu_map_pmeg()
314 sun3_put_segmap (vaddr, curr_pmeg); in mmu_emu_map_pmeg()
324 sun3_put_segmap (vaddr, curr_pmeg); in mmu_emu_map_pmeg()
327 pmeg_vaddr[curr_pmeg] = vaddr; in mmu_emu_map_pmeg()
331 sun3_put_pte (vaddr + i, SUN3_PAGE_SYSTEM); in mmu_emu_map_pmeg()
353 int mmu_emu_handle_fault (unsigned long vaddr, int read_flag, int kernel_fault) in mmu_emu_handle_fault() argument
373 vaddr, read_flag ? "read" : "write", crp); in mmu_emu_handle_fault()
376 segment = (vaddr >> SUN3_PMEG_SIZE_BITS) & 0x7FF; in mmu_emu_handle_fault()
377 offset = (vaddr >> SUN3_PTE_SIZE_BITS) & 0xF; in mmu_emu_handle_fault()
399 if (sun3_get_segmap (vaddr&~SUN3_PMEG_MASK) == SUN3_INVALID_PMEG) in mmu_emu_handle_fault()
400 mmu_emu_map_pmeg (context, vaddr); in mmu_emu_handle_fault()
403 sun3_put_pte (vaddr&PAGE_MASK, pte_val (*pte)); in mmu_emu_handle_fault()
421 print_pte_vaddr (vaddr); in mmu_emu_handle_fault()