Module Name:    src
Committed By:   thorpej
Date:           Wed Aug 19 14:58:48 UTC 2009

Modified Files:
        src/sys/arch/arm/include/arm32: pmap.h
        src/sys/uvm: uvm_pmap.h

Log Message:
Rationalize the definition of PMAP_KMPAGE.


To generate a diff of this commit:
cvs rdiff -u -r1.90 -r1.91 src/sys/arch/arm/include/arm32/pmap.h
cvs rdiff -u -r1.28 -r1.29 src/sys/uvm/uvm_pmap.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/arm/include/arm32/pmap.h
diff -u src/sys/arch/arm/include/arm32/pmap.h:1.90 src/sys/arch/arm/include/arm32/pmap.h:1.91
--- src/sys/arch/arm/include/arm32/pmap.h:1.90	Tue Dec 30 05:51:19 2008
+++ src/sys/arch/arm/include/arm32/pmap.h	Wed Aug 19 14:58:48 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: pmap.h,v 1.90 2008/12/30 05:51:19 matt Exp $	*/
+/*	$NetBSD: pmap.h,v 1.91 2009/08/19 14:58:48 thorpej Exp $	*/
 
 /*
  * Copyright (c) 2002, 2003 Wasabi Systems, Inc.
@@ -290,9 +290,6 @@
 
 #define	PMAP_NEED_PROCWR
 #define PMAP_GROWKERNEL		/* turn on pmap_growkernel interface */
-#define	PMAP_KMPAGE	0x00000040	/* Make uvm tell us when it allocates
-					 a page to be used for kernel memory */
-
 
 #if ARM_MMU_V6 > 0
 #define	PMAP_PREFER(hint, vap, sz, td)	pmap_prefer((hint), (vap), (td))

Index: src/sys/uvm/uvm_pmap.h
diff -u src/sys/uvm/uvm_pmap.h:1.28 src/sys/uvm/uvm_pmap.h:1.29
--- src/sys/uvm/uvm_pmap.h:1.28	Thu Apr 23 06:22:00 2009
+++ src/sys/uvm/uvm_pmap.h	Wed Aug 19 14:58:48 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_pmap.h,v 1.28 2009/04/23 06:22:00 cegger Exp $	*/
+/*	$NetBSD: uvm_pmap.h,v 1.29 2009/08/19 14:58:48 thorpej Exp $	*/
 
 /*
  * Copyright (c) 1991, 1993
@@ -96,20 +96,17 @@
  * Flags passed to pmap_enter().  Note the bottom 3 bits are VM_PROT_*
  * bits, used to indicate the access type that was made (to seed modified
  * and referenced information).
+ *
+ * Flags marked [PA] are for pmap_kenter_pa() only.  Flags marked [BOTH]
+ * apply to pmap_kenter_pa() and pmap_enter().  All other flags are valid
+ * for pmap_enter() only.
  */
 #define	PMAP_WIRED	0x00000010	/* wired mapping */
 #define	PMAP_CANFAIL	0x00000020	/* can fail if resource shortage */
+#define	PMAP_KMPAGE	0x00000040	/* [PA] page used for kernel memory */
 
 #define	PMAP_MD_MASK	0xff000000	/* Machine-dependent bits */
 
-/*
- * Flags passed to pmap_kenter_pa().  Note the bottom 3 bits are VM_PROT_*
- * bits, used to indicate the access type.
- */
-#ifndef PMAP_KMPAGE
-#define	PMAP_KMPAGE	0x00000000	/* this is from the kmem allocator */
-#endif
-
 #ifndef PMAP_EXCLUDE_DECLS	/* Used in Sparc port to virtualize pmap mod */
 #ifdef _KERNEL
 __BEGIN_DECLS

Reply via email to