Module: xenomai-2.6
Branch: master
Commit: 2025ad05981080cf2579b4d65c308f4f40d88d67
URL:    
http://git.xenomai.org/?p=xenomai-2.6.git;a=commit;h=2025ad05981080cf2579b4d65c308f4f40d88d67

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Sun Apr 28 00:42:54 2013 +0200

hal/x86: use __asm__ to allow compiling with GCC extensions disabled

---

 include/asm-x86/atomic.h     |    2 +-
 include/asm-x86/atomic_asm.h |    2 +-
 include/asm-x86/tsc.h        |    4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/asm-x86/atomic.h b/include/asm-x86/atomic.h
index a2c17a8..ca6bbdb 100644
--- a/include/asm-x86/atomic.h
+++ b/include/asm-x86/atomic.h
@@ -76,7 +76,7 @@ typedef struct { unsigned long counter; } xnarch_atomic_t;
 
 static inline void cpu_relax(void)
 {
-       asm volatile("rep; nop" ::: "memory");
+       __asm__ __volatile__("rep; nop" ::: "memory");
 }
 #else /* !CONFIG_XENO_ATOMIC_BUILTINS */
 #include <asm/xenomai/atomic_asm.h>
diff --git a/include/asm-x86/atomic_asm.h b/include/asm-x86/atomic_asm.h
index 09b628a..97cfb1d 100644
--- a/include/asm-x86/atomic_asm.h
+++ b/include/asm-x86/atomic_asm.h
@@ -28,7 +28,7 @@
 
 static inline void cpu_relax(void)
 {
-       asm volatile("rep; nop" ::: "memory");
+       __asm__ __volatile__("rep; nop" ::: "memory");
 }
 
 #ifdef __i386__
diff --git a/include/asm-x86/tsc.h b/include/asm-x86/tsc.h
index 74717ad..a3e5c91 100644
--- a/include/asm-x86/tsc.h
+++ b/include/asm-x86/tsc.h
@@ -27,13 +27,13 @@ static inline unsigned long long __xn_rdtsc(void)
 #ifdef __i386__
        unsigned long long t;
 
-       asm volatile ("rdtsc" : "=A" (t));
+       __asm__ __volatile__ ("rdtsc" : "=A" (t));
        return t;
 
 #else /* x86_64 */
        unsigned int __a,__d;
 
-       asm volatile ("rdtsc" : "=a" (__a), "=d" (__d));
+       __asm__ __volatile__ ("rdtsc" : "=a" (__a), "=d" (__d));
        return ((unsigned long)__a) | (((unsigned long)__d) << 32);
 #endif /* x86_64 */
 }


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to