Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sun3/include Sun3 and Sun3x both use 8K pages. Mak...
details: https://anonhg.NetBSD.org/src/rev/83b6f1b3004a
branches: trunk
changeset: 499217:83b6f1b3004a
user: thorpej <thorpej%NetBSD.org@localhost>
date: Tue Nov 14 19:34:26 2000 +0000
description:
Sun3 and Sun3x both use 8K pages. Make PAGE_* and friends into
compile-time constants.
diffstat:
sys/arch/sun3/include/vmparam.h | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r ecd5f179c811 -r 83b6f1b3004a sys/arch/sun3/include/vmparam.h
--- a/sys/arch/sun3/include/vmparam.h Tue Nov 14 19:31:51 2000 +0000
+++ b/sys/arch/sun3/include/vmparam.h Tue Nov 14 19:34:26 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmparam.h,v 1.25 2000/01/26 09:44:13 tsutsui Exp $ */
+/* $NetBSD: vmparam.h,v 1.26 2000/11/14 19:34:26 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -33,6 +33,14 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
+/*
+ * We use 8K pages on both the sun3 and sun3x. Override PAGE_*
+ * to be compile-time constants.
+ */
+#define PAGE_SHIFT 13
+#define PAGE_SIZE (1 << PAGE_SHIFT)
+#define PAGE_MASK (PAGE_SIZE - 1)
+
#ifdef _SUN3_
#include <machine/vmparam3.h>
#endif /* SUN3 */
Home |
Main Index |
Thread Index |
Old Index