From fc242bef00206c3bab4117345734ce744f0b7eff Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 21 Dec 2006 21:50:33 +0000 Subject: * include/atomic.h (atomic_forced_read): New macro. --- include/atomic.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/atomic.h b/include/atomic.h index ec1e9899f1..2ad8b5fcb7 100644 --- a/include/atomic.h +++ b/include/atomic.h @@ -497,6 +497,12 @@ #endif +#ifndef atomic_forced_read +# define atomic_forced_read(x) \ + ({ __typeof (x) __x; __asm ("" : "=r" (__x) : "0" (x)); __x; }) +#endif + + #ifndef atomic_delay # define atomic_delay() do { /* nothing */ } while (0) #endif -- cgit 1.4.1