Allow PVF_UNCACHEABLE in set/clear of pmap_changebit call (for now).
This commit is contained in:
parent
2f312a0c44
commit
d2db4f3b98
|
@ -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 @@ pmap_changebit(struct vm_page *pg, u_int set, u_int clear)
|
|||
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);
|
||||
|
||||
|
|
|
@ -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 @@ struct pmap {
|
|||
#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
|
||||
|
|
Loading…
Reference in New Issue