mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-18 12:16:13 +08:00
Update.
2002-03-22 Ulrich Drepper <drepper@redhat.com> * internals.h (MEMORY_BARRIER): Define as asm with memory as clobber.
This commit is contained in:
parent
c7a9b6e2d3
commit
32fe4a9320
@ -1,3 +1,7 @@
|
|||||||
|
2002-03-22 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* internals.h (MEMORY_BARRIER): Define as asm with memory as clobber.
|
||||||
|
|
||||||
2002-03-17 Andreas Jaeger <aj@suse.de>
|
2002-03-17 Andreas Jaeger <aj@suse.de>
|
||||||
|
|
||||||
* sysdeps/i386/pt-machine.h: Add testandset and __compare_and_swap
|
* sysdeps/i386/pt-machine.h: Add testandset and __compare_and_swap
|
||||||
|
@ -193,12 +193,14 @@ static inline int nonexisting_handle(pthread_handle h, pthread_t id)
|
|||||||
#define THREAD_STACK_START_ADDRESS __pthread_initial_thread_bos
|
#define THREAD_STACK_START_ADDRESS __pthread_initial_thread_bos
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* If MEMORY_BARRIER isn't defined in pt-machine.h, assume the architecture
|
/* If MEMORY_BARRIER isn't defined in pt-machine.h, assume the
|
||||||
doesn't need a memory barrier instruction (e.g. Intel x86). Some
|
architecture doesn't need a memory barrier instruction (e.g. Intel
|
||||||
architectures distinguish between full, read and write barriers. */
|
x86). Still we need the compiler to respect the barrier and emit
|
||||||
|
all outstanding operations which modify memory. Some architectures
|
||||||
|
distinguish between full, read and write barriers. */
|
||||||
|
|
||||||
#ifndef MEMORY_BARRIER
|
#ifndef MEMORY_BARRIER
|
||||||
#define MEMORY_BARRIER()
|
#define MEMORY_BARRIER() asm ("" : : : "memory")
|
||||||
#endif
|
#endif
|
||||||
#ifndef READ_MEMORY_BARRIER
|
#ifndef READ_MEMORY_BARRIER
|
||||||
#define READ_MEMORY_BARRIER() MEMORY_BARRIER()
|
#define READ_MEMORY_BARRIER() MEMORY_BARRIER()
|
||||||
|
Loading…
Reference in New Issue
Block a user