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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Wed Aug  5 14:02:13 2009 +0200

blackfin: do not consider IPEND[4] for scheduling deferral

---

 ksrc/arch/blackfin/switch.S |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/ksrc/arch/blackfin/switch.S b/ksrc/arch/blackfin/switch.S
index 906e5f5..6696a2f 100644
--- a/ksrc/arch/blackfin/switch.S
+++ b/ksrc/arch/blackfin/switch.S
@@ -85,15 +85,19 @@ ENTRY(_rthal_defer_switch_p)
        r1 = EVT_IVG15 (z);
         r0 = r0 & r1;
        cc = r0 == 0;
-       if !cc jump 1f; 
+       if !cc jump 1f;
 #endif /* CONFIG_XENO_OPT_PERVASIVE */
        p2.l = lo(IPEND);
         p2.h = hi(IPEND);
        csync;
         r2 = [p2];
-        r1 = 1;
-        r1 = r2 - r1;
+        r1 = LO(~0x13) (Z);
         r0 = r2 & r1;
+        cc = r0 == 0;
+        if cc jump 1f;
+        r1 = 1;
+        r1 = r0 - r1;
+        r0 = r0 & r1;
 1:
        rts
 
@@ -108,4 +112,4 @@ ENTRY(_rthal_nmi_handler)
        RESTORE_ALL_SYS
        rtn; 
                
-#endif /* CONFIG_XENO_HW_NMI_DEBUG_LATENCY_MAX */
+#endif /* CONFIG_XENO_HW_NMI_DEBUG_LATENCY */


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

Reply via email to