Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/43c4fa309ef7
branches:  trunk
changeset: 499211:43c4fa309ef7
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Nov 14 19:03:22 2000 +0000

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

diffstat:

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

diffs (24 lines):

diff -r 94259d24d7df -r 43c4fa309ef7 sys/arch/hp300/include/vmparam.h
--- a/sys/arch/hp300/include/vmparam.h  Tue Nov 14 19:01:09 2000 +0000
+++ b/sys/arch/hp300/include/vmparam.h  Tue Nov 14 19:03:22 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.21 2000/02/11 19:25:15 thorpej Exp $     */
+/*     $NetBSD: vmparam.h,v 1.22 2000/11/14 19:03:22 thorpej Exp $     */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -50,6 +50,14 @@
  */
 
 /*
+ * We use 4K pages on the hp300.  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