diff options
author | kib <kib@FreeBSD.org> | 2015-08-04 13:50:52 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2015-08-04 13:50:52 +0000 |
commit | d95709e0297ba6c4d4a4b9081a5afaf6743088d5 (patch) | |
tree | 0f76a7fe7438dae633286557783c41cea5b288ad /sys/i386/include/param.h | |
parent | c5e8194f33abf05314599d63c1e00d01aa354f47 (diff) | |
download | FreeBSD-src-d95709e0297ba6c4d4a4b9081a5afaf6743088d5.zip FreeBSD-src-d95709e0297ba6c4d4a4b9081a5afaf6743088d5.tar.gz |
Give large kernel stack to the initial thread . Otherwise, ZFS
overflows the stack during root mount in some configurations.
Tested by: Fabian Keil <freebsd-listen@fabiankeil.de> (previous version)
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Diffstat (limited to 'sys/i386/include/param.h')
-rw-r--r-- | sys/i386/include/param.h | 5 |
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 |