pmap_pte(pmap_t map, vm_offset_t virt)
pt_entry_t *pmap_pte __P((pmap_t, vaddr_t)); void pmap_remove_all __P((paddr_t));   #define	pmap_pte_w(pte)		(*(pte) & PG_W) #define	pmap_pte_m(pte)		(*(pte) & PG_M) #define	pmap_pte_u(pte)		(*(pte) & PG_U) #define	pmap_pte_prot(pte)	(*(pte) & PG_PROT)  #define	pmap_pte_w_chg(pte, nw)		((nw) ^ pmap_pte_w(pte)) #define	pmap_pte_prot_chg(pte, np)	((np) ^ pmap_pte_prot(pte))   static __inline u_int32_t m88k_protection(pmap_t map, vm_prot_t prot)
pmap_pte(pmap_t map, vm_offset_t virt){	sdt_entry_t *sdt;#ifdef DIAGNOSTIC	/*XXX will this change if physical memory is not contiguous? */	/* take a look at PDTIDX XXXnivas */	if (map == PMAP_NULL)		panic("pmap_pte: pmap is NULL");#endif	sdt = SDTENT(map,virt);	/*	 * Check whether page table is exist or not.	 */	if (!SDT_VALID(sdt))		return (PT_ENTRY_NULL);	else		return ((pt_entry_t *)(((sdt + SDT_ENTRIES)->table_addr)<<PDT_SHIFT) +			PDTIDX(virt));} /* pmap_pte */