Module: xenomai-head
Branch: master
Commit: 6be4ec1fe4608d587875f0b090b00584702de3ae
URL:    
http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=6be4ec1fe4608d587875f0b090b00584702de3ae

Author: Philippe Gerum <r...@xenomai.org>
Date:   Wed Mar 23 16:12:02 2011 +0100

common: pass feature info block to xeno_arch_features_check()

---

 include/asm-arm/bits/bind.h |    4 ++--
 include/asm-x86/bits/bind.h |    4 ++--
 src/skins/common/bind.c     |    2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/include/asm-arm/bits/bind.h b/include/asm-arm/bits/bind.h
index c7e58b6..d1dd63b 100644
--- a/include/asm-arm/bits/bind.h
+++ b/include/asm-arm/bits/bind.h
@@ -17,7 +17,7 @@ __attribute__((weak)) struct __xn_tscinfo __xn_tscinfo = {
   type: -1
 };
 
-static inline void xeno_arm_features_check(void)
+static inline void xeno_arm_features_check(struct xnfeatinfo *finfo)
 {
 #ifdef XNARCH_ARM_TSC_TYPE
        unsigned page_size;
@@ -106,6 +106,6 @@ static inline void xeno_arm_features_check(void)
        }
 #endif /* XNARCH_ARM_TSC_TYPE */
 }
-#define xeno_arch_features_check() xeno_arm_features_check()
+#define xeno_arch_features_check(finfo) xeno_arm_features_check(finfo)
 
 #endif /* _XENO_ASM_ARM_BIND_H */
diff --git a/include/asm-x86/bits/bind.h b/include/asm-x86/bits/bind.h
index fed2f32..aa4ca8e 100644
--- a/include/asm-x86/bits/bind.h
+++ b/include/asm-x86/bits/bind.h
@@ -10,7 +10,7 @@
 #include <asm/xenomai/features.h>
 
 #ifdef __i386__
-static inline void xeno_x86_features_check(void)
+static inline void xeno_x86_features_check(struct xnfeatinfo *finfo)
 {
 #ifdef CONFIG_XENO_X86_SEP
        size_t n = confstr(_CS_GNU_LIBPTHREAD_VERSION, NULL, 0);
@@ -30,7 +30,7 @@ static inline void xeno_x86_features_check(void)
        exit(1);
 #endif /* CONFIG_XENO_X86_SEP */
 }
-#define xeno_arch_features_check() xeno_x86_features_check()
+#define xeno_arch_features_check(finfo) xeno_x86_features_check(finfo)
 
 #endif /* __i386__ */
 
diff --git a/src/skins/common/bind.c b/src/skins/common/bind.c
index 094f16b..fd68198 100644
--- a/src/skins/common/bind.c
+++ b/src/skins/common/bind.c
@@ -137,7 +137,7 @@ xeno_bind_skin_opt(unsigned skin_magic, const char *skin,
        xnsig_handlers[muxid] = handler;
 
 #ifdef xeno_arch_features_check
-       xeno_arch_features_check();
+       xeno_arch_features_check(&finfo);
 #endif /* xeno_arch_features_check */
 
        xeno_init_sem_heaps();


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to