2003-09-11  Steven Munroe  <sjmunroe@us.ibm.com>

	* sysdeps/powerpc/powerpc64/pt-machine.h [MEMORY_BARRIER]: Use lwsync.
	[READ_MEMORY_BARRIER]: Define.
	[WRITE_MEMORY_BARRIER]: Define.
This commit is contained in:
Ulrich Drepper 2003-09-11 18:56:41 +00:00
parent d087b5dc6b
commit 854f9ec4a6
4 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2003-09-11 Steven Munroe <sjmunroe@us.ibm.com>
* sysdeps/powerpc/powerpc64/pt-machine.h [MEMORY_BARRIER]: Use lwsync.
[READ_MEMORY_BARRIER]: Define.
[WRITE_MEMORY_BARRIER]: Define.
2003-09-10 Jakub Jelinek <jakub@redhat.com>
* sysdeps/pthread/pthread-functions.h (struct pthread_functions): Move

View File

@ -34,7 +34,9 @@ extern int __compare_and_swap (long int *p, long int oldval, long int newval);
/* For multiprocessor systems, we want to ensure all memory accesses
are completed before we reset a lock. On other systems, we still
need to make sure that the compiler has flushed everything to memory. */
#define MEMORY_BARRIER() __asm__ __volatile__ ("sync" : : : "memory")
#define MEMORY_BARRIER() __asm__ __volatile__ ("lwsync" : : : "memory")
#define READ_MEMORY_BARRIER() __asm__ __volatile__ ("lwsync" : : : "memory")
#define WRITE_MEMORY_BARRIER() __asm__ __volatile__ ("eieio" : : : "memory")
/* We want the OS to assign stack addresses. */
#define FLOATING_STACKS 1

View File

@ -1 +1 @@
NPTL 0.57 by Ulrich Drepper
NPTL 0.58 by Ulrich Drepper

View File

@ -80,7 +80,6 @@ typedef union
unsigned long long int __wakeup_seq;
unsigned long long int __woken_seq;
void *__mutex;
int __locker;
} __data;
char __size[__SIZEOF_PTHREAD_COND_T];
long long int __align;