Module: xenomai-2.5
Branch: master
Commit: 7f59bc2bfc9d5533fae1b7130e085d485c8350a1
URL:    
http://git.xenomai.org/?p=xenomai-2.5.git;a=commit;h=7f59bc2bfc9d5533fae1b7130e085d485c8350a1

Author: Philippe Gerum <r...@xenomai.org>
Date:   Wed Jun 23 16:00:06 2010 +0200

powerpc: introduce HW_MATH_EMU symbol

We need a way to identify platforms for which kernel-based FPU support
is not available, because some form of math emulation is required to
handle FP code.

Introduce and check CONFIG_XENO_HW_MATH_EMU for this purpose; that
conditional symbol is set by the arch-dep Kconfig frag, depending on
the presence of other platform-specific symbols it may test.

---

 include/asm-powerpc/fptest.h |    4 ++--
 ksrc/arch/powerpc/Kconfig    |    4 ++++
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/include/asm-powerpc/fptest.h b/include/asm-powerpc/fptest.h
index de3e9af..02c5cb3 100644
--- a/include/asm-powerpc/fptest.h
+++ b/include/asm-powerpc/fptest.h
@@ -7,11 +7,11 @@
 
 static inline int fp_kernel_supported(void)
 {
-#ifdef CONFIG_MATH_EMULATION
+#ifdef CONFIG_XENO_HW_MATH_EMU
        static int once = 0;
        if (!once) {
                once = 1;
-               printk("Warning: CONFIG_MATH_EMULATION defined in kernel\n"
+               printk("Warning: math emulation code defined in kernel\n"
                       "         no kernel-based FPU support for this 
platform\n");
        }
        return 0;
diff --git a/ksrc/arch/powerpc/Kconfig b/ksrc/arch/powerpc/Kconfig
index d630eb9..1f2eeb2 100644
--- a/ksrc/arch/powerpc/Kconfig
+++ b/ksrc/arch/powerpc/Kconfig
@@ -6,6 +6,10 @@ config XENO_FASTSYNCH
        bool
        default y
 
+config XENO_HW_MATH_EMU
+        bool
+       default y if MATH_EMU || 8XX_MINIMAL_FPEMU
+
 source "kernel/xenomai/nucleus/Kconfig"
 
 menu "Machine"


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

Reply via email to