summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/param.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-08-25 02:20:02 +0000
committerpeter <peter@FreeBSD.org>2001-08-25 02:20:02 +0000
commit70aca15c211e6081406e6a0b661a41594a64187a (patch)
tree507801bec2b11b2c70916032367a1906891044d6 /sys/i386/include/param.h
parentd244a653e5b56edafe3e4993347279dff7000cff (diff)
downloadFreeBSD-src-70aca15c211e6081406e6a0b661a41594a64187a.zip
FreeBSD-src-70aca15c211e6081406e6a0b661a41594a64187a.tar.gz
Optionize UPAGES for the i386. As part of this I split some of the low
level implementation stuff out of machine/globaldata.h to avoid exposing UPAGES to lots more places. The end result is that we can double the kernel stack size with 'options UPAGES=4' etc. This is mainly being done for the benefit of a MFC to RELENG_4 at some point. -current doesn't really need this so much since each interrupt runs on its own kstack.
Diffstat (limited to 'sys/i386/include/param.h')
-rw-r--r--sys/i386/include/param.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/i386/include/param.h b/sys/i386/include/param.h
index 6241389..9f63c01 100644
--- a/sys/i386/include/param.h
+++ b/sys/i386/include/param.h
@@ -110,7 +110,10 @@
#define MAXDUMPPGS (DFLTPHYS/PAGE_SIZE)
#define IOPAGES 2 /* pages of i/o permission bitmap */
+
+#ifndef UPAGES
#define UPAGES 2 /* pages of u-area */
+#endif
/*
* Ceiling on amount of swblock kva space.
OpenPOWER on IntegriCloud