Source-Changes-HG archive

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

[src/trunk]: src/sys/arch Use PGSHIFT from <machine/param.h> for PAGE_SHIFT.



details:   https://anonhg.NetBSD.org/src/rev/4747eb82df69
branches:  trunk
changeset: 749790:4747eb82df69
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Tue Dec 08 13:47:26 2009 +0000

description:
Use PGSHIFT from <machine/param.h> for PAGE_SHIFT.
We can assume PGSHIFT is always constant on current
m68k pmap_motorola implementation.
Also fix some leftover HP300 comments on some ports.

diffstat:

 sys/arch/amiga/include/vmparam.h   |  6 +++---
 sys/arch/atari/include/vmparam.h   |  6 +++---
 sys/arch/cesfic/include/vmparam.h  |  4 ++--
 sys/arch/hp300/include/vmparam.h   |  4 ++--
 sys/arch/luna68k/include/vmparam.h |  6 +++---
 sys/arch/mac68k/include/vmparam.h  |  4 ++--
 sys/arch/mvme68k/include/vmparam.h |  4 ++--
 sys/arch/news68k/include/vmparam.h |  4 ++--
 sys/arch/next68k/include/vmparam.h |  4 ++--
 sys/arch/x68k/include/vmparam.h    |  4 ++--
 10 files changed, 23 insertions(+), 23 deletions(-)

diffs (200 lines):

diff -r 45bc34d98719 -r 4747eb82df69 sys/arch/amiga/include/vmparam.h
--- a/sys/arch/amiga/include/vmparam.h  Tue Dec 08 10:13:39 2009 +0000
+++ b/sys/arch/amiga/include/vmparam.h  Tue Dec 08 13:47:26 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.38 2009/08/26 00:30:01 thorpej Exp $     */
+/*     $NetBSD: vmparam.h,v 1.39 2009/12/08 13:47:26 tsutsui Exp $     */
 
 /*
  * Copyright (c) 1982, 1986, 1990 The Regents of the University of California.
@@ -81,14 +81,14 @@
 #include <machine/pte.h>
 
 /*
- * Machine dependent constants for HP300
+ * Machine dependent constants for amiga
  */
 
 /*
  * We use 8K pages on the Amiga.  Override the PAGE_* definitions
  * to be compie-time constants.
  */
-#define        PAGE_SHIFT      13
+#define        PAGE_SHIFT      PGSHIFT
 #define        PAGE_SIZE       (1 << PAGE_SHIFT)
 #define        PAGE_MASK       (PAGE_SIZE - 1)
 
diff -r 45bc34d98719 -r 4747eb82df69 sys/arch/atari/include/vmparam.h
--- a/sys/arch/atari/include/vmparam.h  Tue Dec 08 10:13:39 2009 +0000
+++ b/sys/arch/atari/include/vmparam.h  Tue Dec 08 13:47:26 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.25 2009/08/26 00:30:02 thorpej Exp $     */
+/*     $NetBSD: vmparam.h,v 1.26 2009/12/08 13:47:26 tsutsui Exp $     */
 
 /*
  * Copyright (c) 1982, 1986, 1990 The Regents of the University of California.
@@ -82,14 +82,14 @@
 #include <machine/pte.h>
 
 /*
- * Machine dependent constants for HP300
+ * Machine dependent constants for atari
  */
 
 /*
  * We use 8K pages on the Atari.  Override the PAGE_* definitions
  * to be compile-time constants.
  */
-#define        PAGE_SHIFT      13
+#define        PAGE_SHIFT      PGSHIFT
 #define        PAGE_SIZE       (1 << PAGE_SHIFT)
 #define        PAGE_MASK       (PAGE_SIZE - 1)
 
diff -r 45bc34d98719 -r 4747eb82df69 sys/arch/cesfic/include/vmparam.h
--- a/sys/arch/cesfic/include/vmparam.h Tue Dec 08 10:13:39 2009 +0000
+++ b/sys/arch/cesfic/include/vmparam.h Tue Dec 08 13:47:26 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.11 2009/08/26 00:30:02 thorpej Exp $     */
+/*     $NetBSD: vmparam.h,v 1.12 2009/12/08 13:47:26 tsutsui Exp $     */
 
 /*
  * Copyright (c) 1982, 1986, 1990, 1993
@@ -87,7 +87,7 @@
  * We use 4K pages on the cesfic.  Override the PAGE_* definitions
  * to be compile-time constants.
  */
-#define        PAGE_SHIFT      12
+#define        PAGE_SHIFT      PGSHIFT
 #define        PAGE_SIZE       (1 << PAGE_SHIFT)
 #define        PAGE_MASK       (PAGE_SIZE - 1)
 
diff -r 45bc34d98719 -r 4747eb82df69 sys/arch/hp300/include/vmparam.h
--- a/sys/arch/hp300/include/vmparam.h  Tue Dec 08 10:13:39 2009 +0000
+++ b/sys/arch/hp300/include/vmparam.h  Tue Dec 08 13:47:26 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.34 2009/08/26 00:30:02 thorpej Exp $     */
+/*     $NetBSD: vmparam.h,v 1.35 2009/12/08 13:47:26 tsutsui Exp $     */
 
 /*
  * Copyright (c) 1982, 1986, 1990, 1993
@@ -87,7 +87,7 @@
  * We use 4K pages on the hp300.  Override the PAGE_* definitions
  * to be compile-time constants.
  */
-#define        PAGE_SHIFT      12
+#define        PAGE_SHIFT      PGSHIFT
 #define        PAGE_SIZE       (1 << PAGE_SHIFT)
 #define        PAGE_MASK       (PAGE_SIZE - 1)
 
diff -r 45bc34d98719 -r 4747eb82df69 sys/arch/luna68k/include/vmparam.h
--- a/sys/arch/luna68k/include/vmparam.h        Tue Dec 08 10:13:39 2009 +0000
+++ b/sys/arch/luna68k/include/vmparam.h        Tue Dec 08 13:47:26 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.13 2009/08/26 00:30:02 thorpej Exp $     */
+/*     $NetBSD: vmparam.h,v 1.14 2009/12/08 13:47:27 tsutsui Exp $     */
 
 /*
  * Copyright (c) 1982, 1986, 1990, 1993
@@ -80,10 +80,10 @@
 #define _MACHINE_VMPARAM_H_
 
 /*
- * We use 4K pages on the hp300.  Override the PAGE_* definitions
+ * We use 4K pages on the luna68k.  Override the PAGE_* definitions
  * to be compile-time constants.
  */
-#define        PAGE_SHIFT      12
+#define        PAGE_SHIFT      PGSHIFT
 #define        PAGE_SIZE       (1 << PAGE_SHIFT)
 #define        PAGE_MASK       (PAGE_SIZE - 1)
 
diff -r 45bc34d98719 -r 4747eb82df69 sys/arch/mac68k/include/vmparam.h
--- a/sys/arch/mac68k/include/vmparam.h Tue Dec 08 10:13:39 2009 +0000
+++ b/sys/arch/mac68k/include/vmparam.h Tue Dec 08 13:47:26 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.39 2009/08/26 00:30:02 thorpej Exp $     */
+/*     $NetBSD: vmparam.h,v 1.40 2009/12/08 13:47:27 tsutsui Exp $     */
 
 /*
  * Copyright (c) 1982, 1990 The Regents of the University of California.
@@ -117,7 +117,7 @@
  * We use 4K pages on the mac68k.  Override the PAGE_* definitions
  * to be compile-time constants.
  */
-#define        PAGE_SHIFT      12
+#define        PAGE_SHIFT      PGSHIFT
 #define        PAGE_SIZE       (1 << PAGE_SHIFT)
 #define        PAGE_MASK       (PAGE_SIZE - 1)
 
diff -r 45bc34d98719 -r 4747eb82df69 sys/arch/mvme68k/include/vmparam.h
--- a/sys/arch/mvme68k/include/vmparam.h        Tue Dec 08 10:13:39 2009 +0000
+++ b/sys/arch/mvme68k/include/vmparam.h        Tue Dec 08 13:47:26 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.30 2009/08/26 00:30:03 thorpej Exp $     */
+/*     $NetBSD: vmparam.h,v 1.31 2009/12/08 13:47:27 tsutsui Exp $     */
 
 /*
  * Copyright (c) 1982, 1986, 1990, 1993
@@ -87,7 +87,7 @@
  * We use 4K pages on the mvme68k.  Override the PAGE_* definitions
  * to be compile-time constants.
  */
-#define        PAGE_SHIFT      12
+#define        PAGE_SHIFT      PGSHIFT
 #define        PAGE_SIZE       (1 << PAGE_SHIFT)
 #define        PAGE_MASK       (PAGE_SIZE - 1)
 
diff -r 45bc34d98719 -r 4747eb82df69 sys/arch/news68k/include/vmparam.h
--- a/sys/arch/news68k/include/vmparam.h        Tue Dec 08 10:13:39 2009 +0000
+++ b/sys/arch/news68k/include/vmparam.h        Tue Dec 08 13:47:26 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.15 2009/08/26 00:30:03 thorpej Exp $     */
+/*     $NetBSD: vmparam.h,v 1.16 2009/12/08 13:47:27 tsutsui Exp $     */
 
 /*
  * Copyright (c) 1982, 1986, 1990, 1993
@@ -87,7 +87,7 @@
  * We use 4K pages on the news68k.  Override the PAGE_* definitions
  * to be compile time constants.
  */
-#define        PAGE_SHIFT      12
+#define        PAGE_SHIFT      PGSHIFT
 #define        PAGE_SIZE       (1 << PAGE_SHIFT)
 #define        PAGE_MASK       (PAGE_SIZE - 1)
 
diff -r 45bc34d98719 -r 4747eb82df69 sys/arch/next68k/include/vmparam.h
--- a/sys/arch/next68k/include/vmparam.h        Tue Dec 08 10:13:39 2009 +0000
+++ b/sys/arch/next68k/include/vmparam.h        Tue Dec 08 13:47:26 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.20 2009/08/26 00:30:03 thorpej Exp $     */
+/*     $NetBSD: vmparam.h,v 1.21 2009/12/08 13:47:27 tsutsui Exp $     */
 
 /*
  * This file was taken from from mvme68k/include/vmparam.h and
@@ -94,7 +94,7 @@
  * We use 4K pages on the NeXT.  Override the PAGE_* definitions
  * to be compile-time constants.
  */
-#define        PAGE_SHIFT      12
+#define        PAGE_SHIFT      PGSHIFT
 #define        PAGE_SIZE       (1 << PAGE_SHIFT)
 #define        PAGE_MASK       (PAGE_SIZE - 1)
 
diff -r 45bc34d98719 -r 4747eb82df69 sys/arch/x68k/include/vmparam.h
--- a/sys/arch/x68k/include/vmparam.h   Tue Dec 08 10:13:39 2009 +0000
+++ b/sys/arch/x68k/include/vmparam.h   Tue Dec 08 13:47:26 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.30 2009/08/26 00:30:03 thorpej Exp $     */
+/*     $NetBSD: vmparam.h,v 1.31 2009/12/08 13:47:27 tsutsui Exp $     */
 
 /*
  * Copyright (c) 1982, 1986, 1990, 1993
@@ -87,7 +87,7 @@
  * We use 4K pages on the X68K.  Override the PAGE_* definitions
  * to be compile-time constants.
  */
-#define        PAGE_SHIFT      12
+#define        PAGE_SHIFT      PGSHIFT
 #define        PAGE_SIZE       (1 << PAGE_SHIFT)
 #define        PAGE_MASK       (PAGE_SIZE - 1)
 



Home | Main Index | Thread Index | Old Index