about summary refs log tree commit diff
path: root/linuxthreads/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-04-18 07:56:20 +0000
committerUlrich Drepper <drepper@redhat.com>2000-04-18 07:56:20 +0000
commitcd43f797c473dbb5f6f4031e4abb784719e64c93 (patch)
tree3a32b3a0aefa3ee4f6525d42052b567d649e48aa /linuxthreads/sysdeps
parentdbacafe52e30710b5ec8707f60c531e6aeb857ed (diff)
downloadglibc-cd43f797c473dbb5f6f4031e4abb784719e64c93.tar.gz
glibc-cd43f797c473dbb5f6f4031e4abb784719e64c93.tar.xz
glibc-cd43f797c473dbb5f6f4031e4abb784719e64c93.zip
Update.
2000-04-18  Ulrich Drepper  <drepper@redhat.com>

	* posix/Makefile (tests): Add tst-getaddrinfo.
	* posix/tst-getaddrinfo.c: New file.

	and setresuid from sysdep_routines.
Diffstat (limited to 'linuxthreads/sysdeps')
-rw-r--r--linuxthreads/sysdeps/sparc/sparc64/pt-machine.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/linuxthreads/sysdeps/sparc/sparc64/pt-machine.h b/linuxthreads/sysdeps/sparc/sparc64/pt-machine.h
index e22f4fed3c..e5695c0489 100644
--- a/linuxthreads/sysdeps/sparc/sparc64/pt-machine.h
+++ b/linuxthreads/sysdeps/sparc/sparc64/pt-machine.h
@@ -38,9 +38,11 @@ testandset (int *spinlock)
 
 
 /* Memory barrier; default is to do nothing */
-/* FIXME: is stbar OK, or should we use the more general membar instruction?
-   If so, which mode to pass to membar? */
-#define MEMORY_BARRIER() __asm__ __volatile__("stbar" : : : "memory")
+#define MEMORY_BARRIER() \
+     __asm__ __volatile__("membar #LoadLoad | #LoadStore | #StoreLoad | #StoreStore" : : : "memory")
+/* Read barrier.  */
+#define READ_MEMORY_BARRIER() \
+     __asm__ __volatile__("membar #LoadLoad | #LoadStore" : : : "memory")
 /* Write barrier.  */
 #define WRITE_MEMORY_BARRIER() \
      __asm__ __volatile__("membar #StoreLoad | #StoreStore" : : : "memory")