Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/include The i386 page size is fixed -- overrid...
details: https://anonhg.NetBSD.org/src/rev/49c2c5e8d1a5
branches: trunk
changeset: 499204:49c2c5e8d1a5
user: thorpej <thorpej%NetBSD.org@localhost>
date: Tue Nov 14 18:01:54 2000 +0000
description:
The i386 page size is fixed -- override PAGE_SIZE, et al, so that they
are compile-time constants.
diffstat:
sys/arch/i386/include/vmparam.h | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r 202552669189 -r 49c2c5e8d1a5 sys/arch/i386/include/vmparam.h
--- a/sys/arch/i386/include/vmparam.h Tue Nov 14 17:15:51 2000 +0000
+++ b/sys/arch/i386/include/vmparam.h Tue Nov 14 18:01:54 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmparam.h,v 1.38 2000/11/09 17:34:52 kim Exp $ */
+/* $NetBSD: vmparam.h,v 1.39 2000/11/14 18:01:54 thorpej Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -46,6 +46,14 @@
*/
/*
+ * Page size on the IA-32 is not variable in the traditional sense.
+ * We override the PAGE_* definitions to compile-time constants.
+ */
+#define PAGE_SHIFT 12
+#define PAGE_SIZE (1 << PAGE_SHIFT)
+#define PAGE_MASK (PAGE_SIZE - 1)
+
+/*
* Virtual address space arrangement. On 386, 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