Module: xenomai-gch
Branch: for-2.4
Commit: 768dedd24beec5b50e87ddf0817d88e42770f759
URL:    
http://git.xenomai.org/?p=xenomai-gch.git;a=commit;h=768dedd24beec5b50e87ddf0817d88e42770f759

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Thu Aug 27 15:05:05 2009 +0200

arm: disable Xscale fpu switching code

as long as it is not natively supported by Xenomai.

---

 ksrc/arch/arm/switch.S |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/ksrc/arch/arm/switch.S b/ksrc/arch/arm/switch.S
index a7c3dba..384f2cd 100644
--- a/ksrc/arch/arm/switch.S
+++ b/ksrc/arch/arm/switch.S
@@ -102,10 +102,12 @@ ENTRY(rthal_thread_switch)
     strex   r5, r4, [ip]                    @ Clear exclusive monitor
 #endif
 #endif
+#if 0  
 #if defined(CONFIG_CPU_XSCALE) && !defined(CONFIG_IWMMXT)
     mra     r4, r5, acc0
     stmia   ip, {r4, r5}
 #endif
+#endif
 #if defined(CONFIG_HAS_TLS_REG)
     mcr     p15, 0, r3, c13, c0, 3          @ set TLS register
 #elif !defined(CONFIG_TLS_REG_EMUL)
@@ -129,6 +131,7 @@ ENTRY(rthal_thread_switch)
 #endif
     VFPFMXR FPEXC, r4
 #endif
+#if 0
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 18) &&  defined(CONFIG_IWMMXT)
     bl      iwmmxt_task_switch
 #endif
@@ -137,13 +140,16 @@ ENTRY(rthal_thread_switch)
     ldmib   r4, {r4, r5}
     mar     acc0, r4, r5
 #endif
+#endif
     add            r4, r2, #TI_CPU_SAVE
+#if 0  
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 18) && defined(CONFIG_IWMMXT)
     mov            r5, r0
     mov     r0, r2
     bl     iwmmxt_task_switch
     mov            r0, r5
-#endif 
+#endif
+#endif
     ldmia   r4, {r4 - sl, fp, sp, pc}       @ Load all regs saved previously
 
 /*


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

Reply via email to