2002-02-27 Ulrich Drepper <drepper@redhat.com>
* pthread.c [USE_TLS] (thread_self_stack): Correct check for upper
stack limit.
+2002-02-27 Ulrich Drepper <drepper@redhat.com>
+
+ * pthread.c [USE_TLS] (thread_self_stack): Correct check for upper
+ stack limit.
+
2002-02-23 Ulrich Drepper <drepper@redhat.com>
* attr.c (pthread_getattr_np): Don't take thread descriptor size
if (sp >= __pthread_manager_thread_bos && sp < __pthread_manager_thread_tos)
return manager_thread;
h = __pthread_handles + 2;
+# ifdef USE_TLS
+ while (h->h_descr == NULL
+ || ! (sp <= (char *) h->h_descr->p_stackaddr && sp >= h->h_bottom))
+ h++;
+# else
while (! (sp <= (char *) h->h_descr && sp >= h->h_bottom))
h++;
+# endif
return h->h_descr;
}