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 If NOREDZONE is defined, keep UPAGES a...



details:   https://anonhg.NetBSD.org/src/rev/2709c84dc736
branches:  trunk
changeset: 537837:2709c84dc736
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Sun Oct 06 12:37:12 2002 +0000

description:
If NOREDZONE is defined, keep UPAGES at 2 as before.

diffstat:

 sys/arch/i386/include/param.h |  15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diffs (41 lines):

diff -r 9f31c8990951 -r 2709c84dc736 sys/arch/i386/include/param.h
--- a/sys/arch/i386/include/param.h     Sun Oct 06 12:36:16 2002 +0000
+++ b/sys/arch/i386/include/param.h     Sun Oct 06 12:37:12 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.49 2002/10/01 12:57:08 fvdl Exp $  */
+/*     $NetBSD: param.h,v 1.50 2002/10/06 12:37:12 fvdl Exp $  */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -38,6 +38,9 @@
  *     @(#)param.h     5.8 (Berkeley) 6/28/91
  */
 
+#ifndef _I386_PARAM_H_
+#define _I386_PARAM_H_
+
 /*
  * Machine dependent constants for Intel 386.
  */
@@ -90,7 +93,15 @@
 
 #define        SSIZE           1               /* initial stack size/NBPG */
 #define        SINCR           1               /* increment of stack/NBPG */
+
+#ifdef _KERNEL_OPT
+#include "opt_noredzone.h"
+#endif
+#ifdef NOREDZONE
 #define        UPAGES          2               /* pages of u-area */
+#else
+#define UPAGES         4
+#endif
 #define        USPACE          (UPAGES * NBPG) /* total size of u-area */
 
 #ifndef MSGBUFSIZE
@@ -170,3 +181,5 @@
 #define        i386_trunc_page(x)      ((unsigned)(x) & ~PGOFSET)
 #define        i386_btop(x)            ((unsigned)(x) >> PGSHIFT)
 #define        i386_ptob(x)            ((unsigned)(x) << PGSHIFT)
+
+#endif /* _I386_PARAM_H_ */



Home | Main Index | Thread Index | Old Index