Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x68k/include We use 4K pages on the x86k. Make PAG...
details: https://anonhg.NetBSD.org/src/rev/a37be199d0e6
branches: trunk
changeset: 499219:a37be199d0e6
user: thorpej <thorpej%NetBSD.org@localhost>
date: Tue Nov 14 19:47:25 2000 +0000
description:
We use 4K pages on the x86k. Make PAGE_SIZE and friends into
compile-time constants.
diffstat:
sys/arch/x68k/include/vmparam.h | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r f89189b40ee9 -r a37be199d0e6 sys/arch/x68k/include/vmparam.h
--- a/sys/arch/x68k/include/vmparam.h Tue Nov 14 19:44:34 2000 +0000
+++ b/sys/arch/x68k/include/vmparam.h Tue Nov 14 19:47:25 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmparam.h,v 1.14 2000/02/11 19:30:30 thorpej Exp $ */
+/* $NetBSD: vmparam.h,v 1.15 2000/11/14 19:47:25 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -48,6 +48,15 @@
/*
* Machine dependent constants for X68K
*/
+
+/*
+ * We use 4K pages on the X86K. 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
Home |
Main Index |
Thread Index |
Old Index