Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amiga/include We use 8K pages on the Amiga. Make P...



details:   https://anonhg.NetBSD.org/src/rev/244a2d1e3f9f
branches:  trunk
changeset: 499209:244a2d1e3f9f
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Nov 14 18:58:29 2000 +0000

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

diffstat:

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

diffs (25 lines):

diff -r ef9e2a88f245 -r 244a2d1e3f9f sys/arch/amiga/include/vmparam.h
--- a/sys/arch/amiga/include/vmparam.h  Tue Nov 14 18:55:16 2000 +0000
+++ b/sys/arch/amiga/include/vmparam.h  Tue Nov 14 18:58:29 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmparam.h,v 1.26 2000/02/14 20:23:20 is Exp $  */
+/*     $NetBSD: vmparam.h,v 1.27 2000/11/14 18:58:29 thorpej Exp $     */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -49,6 +49,15 @@
 /*
  * Machine dependent constants for HP300
  */
+
+/*
+ * We use 8K pages on the Amiga.  Override the PAGE_* definitions
+ * to be compie-time constants.
+ */
+#define        PAGE_SHIFT      13
+#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



Home | Main Index | Thread Index | Old Index