OSDN Git Service
(root)
/
uclinux-h8
/
uClibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf010f1
)
Set the default thread stack size to 16k for mmu-less systems.
author
Eric Andersen
<andersen@codepoet.org>
Thu, 12 Jun 2003 21:44:56 +0000
(21:44 -0000)
committer
Eric Andersen
<andersen@codepoet.org>
Thu, 12 Jun 2003 21:44:56 +0000
(21:44 -0000)
-Erik
libpthread/linuxthreads/internals.h
patch
|
blob
|
history
diff --git
a/libpthread/linuxthreads/internals.h
b/libpthread/linuxthreads/internals.h
index
2c66258
..
528acdd
100644
(file)
--- 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. */