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

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Fri Jan 18 19:01:04 2013 +0100

cobalt/nucleus: fix xnpod_schedule with nucleus debugging enabled

We need to account for the new XNINLOCK flag in the debug path of
xnpod_schedule.

Signed-off-by: Jan Kiszka <jan.kis...@siemens.com>

---

 include/cobalt/nucleus/pod.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/include/cobalt/nucleus/pod.h b/include/cobalt/nucleus/pod.h
index b9728dd..6988867 100644
--- a/include/cobalt/nucleus/pod.h
+++ b/include/cobalt/nucleus/pod.h
@@ -266,7 +266,8 @@ static inline void xnpod_schedule(void)
         * unlocked context switch.
         */
 #if XENO_DEBUG(NUCLEUS)
-       if (testbits(sched->status | sched->lflags, XNKCOUT|XNINIRQ|XNINSW))
+       if (testbits(sched->status | sched->lflags,
+                    XNKCOUT|XNINIRQ|XNINSW|XNINLOCK))
                return;
 #else /* !XENO_DEBUG(NUCLEUS) */
        if (testbits(sched->status | sched->lflags,


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

Reply via email to