summaryrefslogtreecommitdiffstats
path: root/libpthread/linuxthreads.old/manager.c
diff options
context:
space:
mode:
authorCarmelo Amoroso <carmelo.amoroso@st.com>2008-03-16 08:54:38 +0000
committerCarmelo Amoroso <carmelo.amoroso@st.com>2008-03-16 08:54:38 +0000
commite0a7506f8ec11c1c524fe1d6b52781d168e988db (patch)
tree2dcf7858f0c7d236efe32db885baa9379358ec8a /libpthread/linuxthreads.old/manager.c
parente772b90e7e8190112a987f7c18c19a33766acfd0 (diff)
downloaduClibc-alpine-e0a7506f8ec11c1c524fe1d6b52781d168e988db.tar.bz2
uClibc-alpine-e0a7506f8ec11c1c524fe1d6b52781d168e988db.tar.xz
Merge nptl branch tree with trunk.
Step 7: merge linuxthreads and linuxthread.old folders Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Diffstat (limited to 'libpthread/linuxthreads.old/manager.c')
-rw-r--r--libpthread/linuxthreads.old/manager.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libpthread/linuxthreads.old/manager.c b/libpthread/linuxthreads.old/manager.c
index cad2aacdf..fc39b1e25 100644
--- a/libpthread/linuxthreads.old/manager.c
+++ b/libpthread/linuxthreads.old/manager.c
@@ -355,6 +355,13 @@ static int pthread_allocate_stack(const pthread_attr_t *attr,
guardaddr = NULL;
guardsize = 0;
__pthread_nonstandard_stacks = 1;
+#ifndef __ARCH_USE_MMU__
+ /* check the initial thread stack boundaries so they don't overlap */
+ NOMMU_INITIAL_THREAD_BOUNDS((char *) new_thread, (char *) new_thread_bottom);
+
+ PDEBUG("initial stack: bos=%p, tos=%p\n", __pthread_initial_thread_bos,
+ __pthread_initial_thread_tos);
+#endif
}
else
{