summaryrefslogtreecommitdiff
path: root/libpthread
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-06-12 21:44:56 +0000
committerEric Andersen <andersen@codepoet.org>2003-06-12 21:44:56 +0000
commit082d1540d3c84d16e1967ad68ca445068261cec7 (patch)
tree9615debf863d4d9ef84ef9f8ed2182597371e5f9 /libpthread
parentcf010f16ce15cbf00a7edfb95f2feb2f21241726 (diff)
Set the default thread stack size to 16k for mmu-less systems.
-Erik
Diffstat (limited to 'libpthread')
-rw-r--r--libpthread/linuxthreads/internals.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libpthread/linuxthreads/internals.h b/libpthread/linuxthreads/internals.h
index 2c662582a..528acddc3 100644
--- a/libpthread/linuxthreads/internals.h
+++ b/libpthread/linuxthreads/internals.h
@@ -318,7 +318,11 @@ static inline int invalid_handle(pthread_handle h, pthread_t id)
THREAD_SELF implementation is used, this must be a power of two and
a multiple of PAGE_SIZE. */
#ifndef STACK_SIZE
+#ifdef __UCLIBC_HAS_MMU__
#define STACK_SIZE (2 * 1024 * 1024)
+#else
+#define STACK_SIZE (4 * PAGE_SIZE)
+#endif
#endif
/* The initial size of the thread stack. Must be a multiple of PAGE_SIZE. */