2002-12-05 Roland McGrath <roland@redhat.com>
authorroland <roland>
Fri, 6 Dec 2002 11:13:30 +0000 (11:13 +0000)
committerroland <roland>
Fri, 6 Dec 2002 11:13:30 +0000 (11:13 +0000)
* sysdeps/i386/tls.h (TLS_INIT_TP): Make it return zero or an error
string.
* sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.

nptl/sysdeps/i386/tls.h
nptl/sysdeps/x86_64/tls.h

index 3478364..a4bbf34 100644 (file)
@@ -204,7 +204,8 @@ union user_desc_init
          which is necessary since we have changed it.   */                   \
        TLS_SET_GS (_segdescr.desc.entry_number * 8 + 3);                     \
                                                                              \
-     _result; })
+     _result == 0 ? NULL                                                     \
+     : "set_thread_area failed when setting up thread-local storage"; })
 
 
 /* Return the address of the dtv for the current thread.  */
index af3d202..af4ad17 100644 (file)
@@ -165,7 +165,8 @@ union user_desc_init
                     "S" (_descr)                                             \
                   : "memory", "cc", "r11", "cx");                            \
                                                                              \
-     _result ? -1 : 0; })
+    _result ? "cannot set %fs base address for thread-local storage" : 0;     \
+  })
 
 
 /* Return the address of the dtv for the current thread.  */