Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/pc532/include '532 has 4K pages. Make PAGE_SIZE an...
details: https://anonhg.NetBSD.org/src/rev/ecd5f179c811
branches: trunk
changeset: 499216:ecd5f179c811
user: thorpej <thorpej%NetBSD.org@localhost>
date: Tue Nov 14 19:31:51 2000 +0000
description:
'532 has 4K pages. Make PAGE_SIZE and friends into compile-time
constants.
diffstat:
sys/arch/pc532/include/vmparam.h | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r 7ae8fb2ae646 -r ecd5f179c811 sys/arch/pc532/include/vmparam.h
--- a/sys/arch/pc532/include/vmparam.h Tue Nov 14 19:29:00 2000 +0000
+++ b/sys/arch/pc532/include/vmparam.h Tue Nov 14 19:31:51 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmparam.h,v 1.22 2000/07/18 12:45:50 matthias Exp $ */
+/* $NetBSD: vmparam.h,v 1.23 2000/11/14 19:31:51 thorpej Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -46,6 +46,14 @@
*/
/*
+ * The NS32532 has 4K pages. 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)
+
+/*
* Virtual address space arrangement. On 532, both user and kernel
* share the address space, not unlike the vax.
* USRTEXT is the start of the user text/data space, while USRSTACK
Home |
Main Index |
Thread Index |
Old Index