Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/9758467c6d26
branches:  trunk
changeset: 499213:9758467c6d26
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Nov 14 19:12:58 2000 +0000

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

diffstat:

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

diffs (24 lines):

diff -r 0ef08fa4da20 -r 9758467c6d26 sys/arch/mvme68k/include/vmparam.h
--- a/sys/arch/mvme68k/include/vmparam.h        Tue Nov 14 19:07:34 2000 +0000
+++ b/sys/arch/mvme68k/include/vmparam.h        Tue Nov 14 19:12:58 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.15 2000/07/27 14:48:58 scw Exp $ */
+/*     $NetBSD: vmparam.h,v 1.16 2000/11/14 19:12:58 thorpej Exp $     */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -50,6 +50,14 @@
  */
 
 /*
+ * We use 4K pages on the mvme68k.  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