-/* $OpenBSD: pmap.h,v 1.58 2015/09/11 22:02:18 kettenis Exp $ */
+/* $OpenBSD: pmap.h,v 1.59 2015/10/08 10:20:14 kettenis Exp $ */
/* $NetBSD: pmap.h,v 1.1 1996/09/30 16:34:29 ws Exp $ */
/*-
#define PMAP_STEAL_MEMORY
-#define PG_PMAP_MOD PG_PMAP0
-#define PG_PMAP_REF PG_PMAP1
-#define PG_PMAP_EXE PG_PMAP2
+#define PG_PMAP_MOD PG_PMAP0
+#define PG_PMAP_REF PG_PMAP1
+#define PG_PMAP_EXE PG_PMAP2
+#define PG_PMAP_UC PG_PMAP3
/*
* MD flags that we use for pmap_enter (in the pa):
-/* $OpenBSD: pmap.c,v 1.162 2015/09/11 22:02:18 kettenis Exp $ */
+/* $OpenBSD: pmap.c,v 1.163 2015/10/08 10:20:14 kettenis Exp $ */
/*
* Copyright (c) 2015 Martin Pieuchot
}
pg = PHYS_TO_VM_PAGE(pa);
+ if (pg->pg_flags & PG_PMAP_UC)
+ nocache = TRUE;
if (wt)
cache = PMAP_CACHE_WT;
else if (pg != NULL && !(pg->pg_flags & PG_DEV) && !nocache)