about summary refs log tree commit diff
path: root/nptl/sysdeps/s390/tls.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2008-10-22 21:45:13 +0000
committerUlrich Drepper <drepper@redhat.com>2008-10-22 21:45:13 +0000
commit208bc8367015221e38ffaef9fccbafd68e3fff48 (patch)
tree4ffce2fd5fd509f3f5bbeb93da24c6a62d751a00 /nptl/sysdeps/s390/tls.h
parent60a23f5a729ce088fb34c42d2c536e0ef6e7fb07 (diff)
downloadglibc-208bc8367015221e38ffaef9fccbafd68e3fff48.tar.gz
glibc-208bc8367015221e38ffaef9fccbafd68e3fff48.tar.xz
glibc-208bc8367015221e38ffaef9fccbafd68e3fff48.zip
* misc/syslog.c (openlog_internal): Fix __have_sock_cloexec
	initialization.
Diffstat (limited to 'nptl/sysdeps/s390/tls.h')
-rw-r--r--nptl/sysdeps/s390/tls.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/nptl/sysdeps/s390/tls.h b/nptl/sysdeps/s390/tls.h
index 3be459e32c..2b38ed4e7d 100644
--- a/nptl/sysdeps/s390/tls.h
+++ b/nptl/sysdeps/s390/tls.h
@@ -161,7 +161,12 @@ typedef struct
 
 /* Set the stack guard field in TCB head.  */
 #define THREAD_SET_STACK_GUARD(value) \
-  THREAD_SETMEM (THREAD_SELF, header.stack_guard, value)
+  do 									      \
+   {									      \
+     __asm __volatile ("" : : : "a0", "a1");				      \
+     THREAD_SETMEM (THREAD_SELF, header.stack_guard, value);		      \
+   }									      \
+  while (0)
 #define THREAD_COPY_STACK_GUARD(descr) \
   ((descr)->header.stack_guard						      \
    = THREAD_GETMEM (THREAD_SELF, header.stack_guard))