diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-04-18 07:56:20 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-04-18 07:56:20 +0000 |
commit | cd43f797c473dbb5f6f4031e4abb784719e64c93 (patch) | |
tree | 3a32b3a0aefa3ee4f6525d42052b567d649e48aa /linuxthreads/sysdeps | |
parent | dbacafe52e30710b5ec8707f60c531e6aeb857ed (diff) | |
download | glibc-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.h | 8 |
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") |