Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys Use PMAP_ENABLE_PMAP_KMPAGE to enable PMAP_KMPAGE. We s...



details:   https://anonhg.NetBSD.org/src/rev/56311e018610
branches:  trunk
changeset: 746788:56311e018610
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed Aug 19 23:54:33 2009 +0000

description:
Use PMAP_ENABLE_PMAP_KMPAGE to enable PMAP_KMPAGE.  We still want the bit
defined in the MI space, not in an MD header.

diffstat:

 sys/arch/arm/include/arm32/pmap.h |  3 ++-
 sys/uvm/uvm_pmap.h                |  6 +++++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diffs (38 lines):

diff -r 2ef56a735511 -r 56311e018610 sys/arch/arm/include/arm32/pmap.h
--- a/sys/arch/arm/include/arm32/pmap.h Wed Aug 19 23:46:52 2009 +0000
+++ b/sys/arch/arm/include/arm32/pmap.h Wed Aug 19 23:54:33 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.h,v 1.91 2009/08/19 14:58:48 thorpej Exp $        */
+/*     $NetBSD: pmap.h,v 1.92 2009/08/19 23:54:33 thorpej Exp $        */
 
 /*
  * Copyright (c) 2002, 2003 Wasabi Systems, Inc.
@@ -290,6 +290,7 @@
 
 #define        PMAP_NEED_PROCWR
 #define PMAP_GROWKERNEL                /* turn on pmap_growkernel interface */
+#define        PMAP_ENABLE_PMAP_KMPAGE /* enable the PMAP_KMPAGE flag */
 
 #if ARM_MMU_V6 > 0
 #define        PMAP_PREFER(hint, vap, sz, td)  pmap_prefer((hint), (vap), (td))
diff -r 2ef56a735511 -r 56311e018610 sys/uvm/uvm_pmap.h
--- a/sys/uvm/uvm_pmap.h        Wed Aug 19 23:46:52 2009 +0000
+++ b/sys/uvm/uvm_pmap.h        Wed Aug 19 23:54:33 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_pmap.h,v 1.29 2009/08/19 14:58:48 thorpej Exp $    */
+/*     $NetBSD: uvm_pmap.h,v 1.30 2009/08/19 23:54:33 thorpej Exp $    */
 
 /*
  * Copyright (c) 1991, 1993
@@ -103,7 +103,11 @@
  */
 #define        PMAP_WIRED      0x00000010      /* wired mapping */
 #define        PMAP_CANFAIL    0x00000020      /* can fail if resource shortage */
+#if defined(PMAP_ENABLE_PMAP_KMPAGE)
 #define        PMAP_KMPAGE     0x00000040      /* [PA] page used for kernel memory */
+#else
+#define        PMAP_KMPAGE     0x00000000
+#endif /* PMAP_ENABLE_PMAP_KMPAGE */
 
 #define        PMAP_MD_MASK    0xff000000      /* Machine-dependent bits */
 



Home | Main Index | Thread Index | Old Index