From 6ef59d25eb25d49facd36c247d34a25f58d6d33b Mon Sep 17 00:00:00 2001 From: ivmai Date: Wed, 7 Oct 2009 06:13:03 +0000 Subject: [PATCH] 2009-10-06 Ivan Maidanski * src/atomic_ops/sysdeps/gcc/sh.h: Remove commented out AO_TS_SET redefinition. --- ChangeLog | 5 +++++ src/atomic_ops/sysdeps/gcc/sh.h | 15 +++++---------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index 93e70a2..dbb3f67 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-10-06 Ivan Maidanski + + * src/atomic_ops/sysdeps/gcc/sh.h: Remove commented out AO_TS_SET + redefinition. + 2009-10-05 Ivan Maidanski * src/atomic_ops/sysdeps/Makefile.in: Regenerate. diff --git a/src/atomic_ops/sysdeps/gcc/sh.h b/src/atomic_ops/sysdeps/gcc/sh.h index 95a89c7..933037a 100644 --- a/src/atomic_ops/sysdeps/gcc/sh.h +++ b/src/atomic_ops/sysdeps/gcc/sh.h @@ -18,20 +18,15 @@ /* sh has tas.b(byte) only */ #include "../test_and_set_t_is_char.h" -/* FIXME: Is AO_TS_SET redefining needed? */ -/* #undef AO_TS_SET */ -/* #define AO_TS_SET (1<<7) */ - AO_INLINE AO_TS_VAL_t AO_test_and_set_full(volatile AO_TS_t *addr) { int oldval; - __asm__ __volatile__( - "tas.b @%1; movt %0" - : "=r" (oldval) - : "r" (addr) - : "t", "memory"); - return oldval? AO_TS_CLEAR : AO_TS_SET; + "tas.b @%1; movt %0" + : "=r" (oldval) + : "r" (addr) + : "t", "memory"); + return oldval? AO_TS_CLEAR : AO_TS_SET; } #define AO_HAVE_test_and_set_full -- 2.40.0