svn commit: trunk/uClibc/libpthread/linuxthreads.old

vapier at uclibc.org vapier at uclibc.org
Thu May 31 08:26:29 UTC 2007


Author: vapier
Date: 2007-05-31 01:26:29 -0700 (Thu, 31 May 2007)
New Revision: 18709

Log:
Bernd Schmidt writes: make sure custom stacks work properly for no-mmu

Modified:
   trunk/uClibc/libpthread/linuxthreads.old/manager.c


Changeset:
Modified: trunk/uClibc/libpthread/linuxthreads.old/manager.c
===================================================================
--- trunk/uClibc/libpthread/linuxthreads.old/manager.c	2007-05-31 08:22:35 UTC (rev 18708)
+++ trunk/uClibc/libpthread/linuxthreads.old/manager.c	2007-05-31 08:26:29 UTC (rev 18709)
@@ -355,6 +355,13 @@
       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
     {




More information about the uClibc-cvs mailing list