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

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Sun Dec 30 23:16:19 2012 +0100

arm/hal: move detection of SMP with unsupported architectures

from asm/features.h to asm/atomic_asm.h, the test is no longer valid
when using gcc builtin atomic operations.

---

 include/asm-arm/atomic_asm.h |    4 ++++
 include/asm-arm/features.h   |    4 ----
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/asm-arm/atomic_asm.h b/include/asm-arm/atomic_asm.h
index 47f17c9..ef62690 100644
--- a/include/asm-arm/atomic_asm.h
+++ b/include/asm-arm/atomic_asm.h
@@ -27,6 +27,10 @@
 #error "please don't include asm/atomic_asm.h directly"
 #endif
 
+#if __LINUX_ARM_ARCH__ < 6 && defined(CONFIG_SMP)
+#error "SMP not supported below armv6 with ad-hoc atomic operations, compile 
without SMP or with -march=armv6 or above"
+#endif
+
 extern void __xnarch_xchg_called_with_bad_pointer(void);
 
 #define xnarch_read_memory_barrier()           xnarch_memory_barrier()
diff --git a/include/asm-arm/features.h b/include/asm-arm/features.h
index 279f752..bddaa5e 100644
--- a/include/asm-arm/features.h
+++ b/include/asm-arm/features.h
@@ -73,10 +73,6 @@
 #error "Could not find current ARM architecture"
 #endif
 
-#if __LINUX_ARM_ARCH__ < 6 && defined(CONFIG_SMP)
-#error "SMP not supported below armv6, compile with -march=armv6 or above"
-#endif
-
 #define CONFIG_XENO_FASTSYNCH 1
 
 #if CONFIG_XENO_ARM_TSC_TYPE == __XN_TSC_TYPE_KUSER


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

Reply via email to