mapping for the first page when tearing things down. Seems to fix the last
bug mlarkin@ has been chasing for a while.
ok mlarkin@
-/* $OpenBSD: pmapae.c,v 1.34 2015/04/24 12:52:38 kettenis Exp $ */
+/* $OpenBSD: pmapae.c,v 1.35 2015/04/24 19:41:58 kettenis Exp $ */
/*
* Copyright (c) 2006-2008 Michael Shalayeff
* be VM_MAX_ADDRESS.
*/
- if (pdei(va) == PDSLOT_PTE)
+ if (pdei(va) >= PDSLOT_PTE && pdei(va) <= (PDSLOT_PTE + 3))
/* XXXCDC: ugly hack to avoid freeing PDP here */
continue;
*/
/* XXXCDC: ugly hack to avoid freeing PDP here */
- if (pdei(va) == PDSLOT_PTE)
+ if (pdei(va) >= PDSLOT_PTE && pdei(va) <= (PDSLOT_PTE + 3))
continue;
/* empty block? */