summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhibbits <jhibbits@FreeBSD.org>2013-11-13 01:37:52 +0000
committerjhibbits <jhibbits@FreeBSD.org>2013-11-13 01:37:52 +0000
commit7e2131407e3790e5903874cc906caec631f81efd (patch)
tree928be69d324aba6fd9371d456845f17ddbcb3b2e
parent1708e7ba2f73abb09e138ea8a39d84e2a338381f (diff)
downloadFreeBSD-src-7e2131407e3790e5903874cc906caec631f81efd.zip
FreeBSD-src-7e2131407e3790e5903874cc906caec631f81efd.tar.gz
Increase the stack size for ppc64 from 4 pages to 8.
I found a stack overflow when a coredump was taken onto a ZFS volume with heavy network activity. 2 DSI traps, plus one DECR trap, along with several function calls in the stack, overflowed the 4 pages. 8 page stack fixes this. Discussed with: nwhitehorn MFC after: 1 week
-rw-r--r--sys/powerpc/include/param.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/powerpc/include/param.h b/sys/powerpc/include/param.h
index 7e7c8f1..e4e4b25 100644
--- a/sys/powerpc/include/param.h
+++ b/sys/powerpc/include/param.h
@@ -104,7 +104,11 @@
#define MAXPAGESIZES 1 /* maximum number of supported page sizes */
#ifndef KSTACK_PAGES
-#define KSTACK_PAGES 4 /* includes pcb */
+#ifdef __powerpc64__
+#define KSTACK_PAGES 8 /* includes pcb */
+#else
+#define KSTACK_PAGES 8 /* includes pcb */
+#endif
#endif
#define KSTACK_GUARD_PAGES 1 /* pages of kstack guard; 0 disables */
#define USPACE (KSTACK_PAGES * PAGE_SIZE) /* total size of pcb */
OpenPOWER on IntegriCloud