Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hppa Allow PVF_UNCACHEABLE in set/clear of pmap_cha...
details: https://anonhg.NetBSD.org/src/rev/93bbb0d226a5
branches: trunk
changeset: 755795:93bbb0d226a5
user: skrll <skrll%NetBSD.org@localhost>
date: Mon Jun 21 14:43:34 2010 +0000
description:
Allow PVF_UNCACHEABLE in set/clear of pmap_changebit call (for now).
diffstat:
sys/arch/hppa/hppa/pmap.c | 8 ++++----
sys/arch/hppa/include/pmap.h | 3 ++-
2 files changed, 6 insertions(+), 5 deletions(-)
diffs (46 lines):
diff -r c9941e204d0e -r 93bbb0d226a5 sys/arch/hppa/hppa/pmap.c
--- a/sys/arch/hppa/hppa/pmap.c Mon Jun 21 14:39:35 2010 +0000
+++ b/sys/arch/hppa/hppa/pmap.c Mon Jun 21 14:43:34 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.75 2010/04/02 15:25:51 skrll Exp $ */
+/* $NetBSD: pmap.c,v 1.76 2010/06/21 14:43:34 skrll Exp $ */
/*-
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -65,7 +65,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.75 2010/04/02 15:25:51 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.76 2010/06/21 14:43:34 skrll Exp $");
#include "opt_cputype.h"
@@ -1476,8 +1476,8 @@
DPRINTF(PDB_FOLLOW|PDB_BITS,
("%s(%p, %x, %x)\n", __func__, pg, set, clear));
- KASSERT((set & ~(PVF_REF)) == 0);
- KASSERT((clear & ~(PVF_MOD|PVF_WRITE)) == 0);
+ KASSERT((set & ~(PVF_REF|PVF_UNCACHEABLE)) == 0);
+ KASSERT((clear & ~(PVF_MOD|PVF_WRITE|PVF_UNCACHEABLE)) == 0);
mutex_enter(&pg->mdpage.pvh_lock);
diff -r c9941e204d0e -r 93bbb0d226a5 sys/arch/hppa/include/pmap.h
--- a/sys/arch/hppa/include/pmap.h Mon Jun 21 14:39:35 2010 +0000
+++ b/sys/arch/hppa/include/pmap.h Mon Jun 21 14:43:34 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.h,v 1.26 2010/03/19 07:29:44 skrll Exp $ */
+/* $NetBSD: pmap.h,v 1.27 2010/06/21 14:43:34 skrll Exp $ */
/* $OpenBSD: pmap.h,v 1.35 2007/12/14 18:32:23 deraadt Exp $ */
@@ -63,6 +63,7 @@
#define PVF_MOD PTE_PROT(TLB_DIRTY) /* pg/mp is modified */
#define PVF_REF PTE_PROT(TLB_REFTRAP) /* pg/mp (inv) is referenced */
#define PVF_WRITE PTE_PROT(TLB_WRITE) /* pg/mp is writable */
+#define PVF_UNCACHEABLE PTE_PROT(TLB_UNCACHEABLE) /* pg/mp is uncacheable */
#define HPPA_MAX_PID 0xfffa
#define HPPA_SID_MAX 0x7ffd
Home |
Main Index |
Thread Index |
Old Index