Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/next68k/include We use 4K pages on the NeXT. Defin...



details:   https://anonhg.NetBSD.org/src/rev/7ae8fb2ae646
branches:  trunk
changeset: 499215:7ae8fb2ae646
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Nov 14 19:29:00 2000 +0000

description:
We use 4K pages on the NeXT.  Define PAGE_SIZE and friends to be
compile-time constants.

diffstat:

 sys/arch/next68k/include/vmparam.h |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r eb71a84851c4 -r 7ae8fb2ae646 sys/arch/next68k/include/vmparam.h
--- a/sys/arch/next68k/include/vmparam.h        Tue Nov 14 19:23:07 2000 +0000
+++ b/sys/arch/next68k/include/vmparam.h        Tue Nov 14 19:29:00 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.8 2000/02/11 19:30:28 thorpej Exp $      */
+/*     $NetBSD: vmparam.h,v 1.9 2000/11/14 19:29:00 thorpej Exp $      */
 
 /*
  * This file was taken from from mvme68k/include/vmparam.h and
@@ -57,6 +57,14 @@
  */
 
 /*
+ * We use 4K pages on the NeXT.  Override the PAGE_* definitions
+ * to be compile-time constants.
+ */
+#define        PAGE_SHIFT      12
+#define        PAGE_SIZE       (1 << PAGE_SHIFT)
+#define        PAGE_MASK       (PAGE_SIZE - 1)
+
+/*
  * USRTEXT is the start of the user text/data space, while USRSTACK
  * is the top (end) of the user stack.  LOWPAGES and HIGHPAGES are
  * the number of pages from the beginning of the P0 region to the



Home | Main Index | Thread Index | Old Index