Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/include We use 4K pages on MIPS systems (see m...
details: https://anonhg.NetBSD.org/src/rev/ef9e2a88f245
branches: trunk
changeset: 499208:ef9e2a88f245
user: thorpej <thorpej%NetBSD.org@localhost>
date: Tue Nov 14 18:55:16 2000 +0000
description:
We use 4K pages on MIPS systems (see mips_param.h), so override
PAGE_SIZE and friends to be compile-time constants.
diffstat:
sys/arch/mips/include/vmparam.h | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r 9c86bcadc31d -r ef9e2a88f245 sys/arch/mips/include/vmparam.h
--- a/sys/arch/mips/include/vmparam.h Tue Nov 14 18:42:55 2000 +0000
+++ b/sys/arch/mips/include/vmparam.h Tue Nov 14 18:55:16 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmparam.h,v 1.24 2000/06/09 04:18:19 soda Exp $ */
+/* $NetBSD: vmparam.h,v 1.25 2000/11/14 18:55:16 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -50,6 +50,14 @@
*/
/*
+ * We use a 4K page on MIPS systems. Override PAGE_* definitions
+ * to 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.
*
Home |
Main Index |
Thread Index |
Old Index