[uClibc-cvs] uClibc/libpthread/linuxthreads internals.h,1.4,1.5

Erik Andersen andersen at uclibc.org
Thu Jun 12 21:45:00 UTC 2003


Update of /var/cvs/uClibc/libpthread/linuxthreads
In directory winder:/tmp/cvs-serv6704/libpthread/linuxthreads

Modified Files:
	internals.h 
Log Message:
Set the default thread stack size to 16k for mmu-less systems.
 -Erik


Index: internals.h
===================================================================
RCS file: /var/cvs/uClibc/libpthread/linuxthreads/internals.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- internals.h	1 Mar 2003 09:04:55 -0000	1.4
+++ internals.h	12 Jun 2003 21:44:56 -0000	1.5
@@ -318,7 +318,11 @@
    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.  */



More information about the uClibc-cvs mailing list