Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mac68k/include We use 4K pages on the mac68k. Make...



details:   https://anonhg.NetBSD.org/src/rev/0ef08fa4da20
branches:  trunk
changeset: 499212:0ef08fa4da20
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Nov 14 19:07:34 2000 +0000

description:
We use 4K pages on the mac68k.  Make PAGE_SIZE and friends into
compile-time constants.

diffstat:

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

diffs (24 lines):

diff -r 43c4fa309ef7 -r 0ef08fa4da20 sys/arch/mac68k/include/vmparam.h
--- a/sys/arch/mac68k/include/vmparam.h Tue Nov 14 19:03:22 2000 +0000
+++ b/sys/arch/mac68k/include/vmparam.h Tue Nov 14 19:07:34 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.26 2000/02/11 19:25:16 thorpej Exp $     */
+/*     $NetBSD: vmparam.h,v 1.27 2000/11/14 19:07:34 thorpej Exp $     */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -84,6 +84,14 @@
  */
 
 /*
+ * We use 4K pages on the mac68k.  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