summaryrefslogtreecommitdiffstats
path: root/sys/i386/include
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2015-08-18 09:09:39 +0000
committerkib <kib@FreeBSD.org>2015-08-18 09:09:39 +0000
commitc731ecde39edf20ad064264d3030ead0ae1fb283 (patch)
tree4fe42239d0a468288d8ced7c5fb69c4bae764a14 /sys/i386/include
parent47eb9e91e4cef40c34486f99c1fe7584fc41e91c (diff)
downloadFreeBSD-src-c731ecde39edf20ad064264d3030ead0ae1fb283.zip
FreeBSD-src-c731ecde39edf20ad064264d3030ead0ae1fb283.tar.gz
MFC r286288:
Give large kernel stack to the initial thread.
Diffstat (limited to 'sys/i386/include')
-rw-r--r--sys/i386/include/param.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/i386/include/param.h b/sys/i386/include/param.h
index b3fd85f..f7968f8 100644
--- a/sys/i386/include/param.h
+++ b/sys/i386/include/param.h
@@ -114,6 +114,11 @@
#define KSTACK_PAGES 2 /* Includes pcb! */
#endif
#define KSTACK_GUARD_PAGES 1 /* pages of kstack guard; 0 disables */
+#if KSTACK_PAGES < 4
+#define TD0_KSTACK_PAGES 4
+#else
+#define TD0_KSTACK_PAGES KSTACK_PAGES
+#endif
/*
* Ceiling on amount of swblock kva space, can be changed via
OpenPOWER on IntegriCloud