From 47d4623785559a031ce33b266d1f9b5a2fd24d47 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Mon, 6 Oct 2014 16:08:32 -0500 Subject: powerpc: remove linux lowlevellock.h This patch remove the powerpc specific lowlevellock.h and adjust some implementation that rely on __lll_[rel/acq]_instr defines. --- sysdeps/unix/sysv/linux/powerpc/sem_post.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sysdeps/unix/sysv/linux/powerpc/sem_post.c') diff --git a/sysdeps/unix/sysv/linux/powerpc/sem_post.c b/sysdeps/unix/sysv/linux/powerpc/sem_post.c index f222d9a69c..831a8dd4de 100644 --- a/sysdeps/unix/sysv/linux/powerpc/sem_post.c +++ b/sysdeps/unix/sysv/linux/powerpc/sem_post.c @@ -30,9 +30,9 @@ __new_sem_post (sem_t *sem) { struct new_sem *isem = (struct new_sem *) sem; - __asm __volatile (__lll_rel_instr ::: "memory"); + __asm __volatile (__ARCH_REL_INSTR ::: "memory"); atomic_increment (&isem->value); - __asm __volatile (__lll_acq_instr ::: "memory"); + __asm __volatile (__ARCH_ACQ_INSTR ::: "memory"); if (isem->nwaiters > 0) { int err = lll_futex_wake (&isem->value, 1, @@ -55,7 +55,7 @@ __old_sem_post (sem_t *sem) { int *futex = (int *) sem; - __asm __volatile (__lll_rel_instr ::: "memory"); + __asm __volatile (__ARCH_REL_INSTR ::: "memory"); (void) atomic_increment_val (futex); /* We always have to assume it is a shared semaphore. */ int err = lll_futex_wake (futex, 1, LLL_SHARED); -- cgit 1.4.1