-/* $OpenBSD: pmap7.c,v 1.25 2016/06/07 06:23:19 dlg Exp $ */
+/* $OpenBSD: pmap7.c,v 1.26 2016/07/18 13:38:11 tom Exp $ */
/* $NetBSD: pmap.c,v 1.147 2004/01/18 13:03:50 scw Exp $ */
/*
pmap_t pm;
struct pv_entry *pv;
boolean_t wb = FALSE;
- uint flags = 0;
/*
* To save time, we are only walking the pv list if an I$ invalidation
if (pv->pv_pmap != pmap_kernel() && pv->pv_pmap != pm)
continue;
- flags |= pv->pv_flags;
-
/*
* The page is mapped non-cacheable in
* this map. No need to flush the cache.
if (pv->pv_flags & PVF_NC) /* XXX ought to be pg attr */
break;
- if (PV_BEEN_EXECD(flags))
+ if (PV_BEEN_EXECD(pv->pv_flags))
cpu_icache_sync_range(pv->pv_va, PAGE_SIZE);
/*
pmap_t pm, curpm;
pt_entry_t *ptep, pte;
boolean_t flush;
- u_int flags;
NPDEBUG(PDB_FOLLOW,
printf("pmap_page_remove: pg %p (0x%08lx)\n", pg, pg->phys_addr));
return;
flush = FALSE;
- flags = 0;
if (curproc)
curpm = curproc->p_vmspace->vm_map.pmap;
else
if (pv->pv_flags & PVF_WIRED)
--pm->pm_stats.wired_count;
- flags |= pv->pv_flags;
-
/*
* Invalidate the PTEs.
*/