Flush the caches in pmap_remove_mapping() when PRM_CFLUSH is specified.

Also, flush the ATC for the page in pmap_kenter_pa() after setting up the
mapping. With any luck this last one might just solve the 060 problems I've
been seeing...
This commit is contained in:
scw 2001-07-30 21:25:08 +00:00
parent b0f8b119a2
commit da3836f00d
1 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.65 2001/07/23 20:34:00 scw Exp $ */
/* $NetBSD: pmap.c,v 1.66 2001/07/30 21:25:08 scw Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -1386,6 +1386,7 @@ pmap_kenter_pa(va, pa, prot)
#endif
*pte = npte;
TBIS(va);
}
void
@ -2038,6 +2039,11 @@ pmap_remove_mapping(pmap, va, pte, flags)
pmap->pm_stats.wired_count--;
pmap->pm_stats.resident_count--;
if ((flags & PRM_CFLUSH)) {
DCFP(pa);
ICPP(pa);
}
/*
* Invalidate the PTE after saving the reference modify info.
*/