Browse Source

Set the default thread stack size to 16k for mmu-less systems.
-Erik

Eric Andersen 22 years ago
parent
commit
082d1540d3
1 changed files with 4 additions and 0 deletions
  1. 4 0
      libpthread/linuxthreads/internals.h

+ 4 - 0
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.  */