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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Tue Aug 11 12:33:02 2009 +0200

nucleus: postpone sanity check to allow for signal receipt

---

 ksrc/nucleus/shadow.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/ksrc/nucleus/shadow.c b/ksrc/nucleus/shadow.c
index 5c3cd94..f654d6a 100644
--- a/ksrc/nucleus/shadow.c
+++ b/ksrc/nucleus/shadow.c
@@ -1108,7 +1108,6 @@ redo:
        set_current_state(TASK_INTERRUPTIBLE | TASK_ATOMICSWITCH);
        wake_up_interruptible_sync(&gk->waitq);
        schedule();     /* Will preempt_enable() thanks to TASK_ATOMICSWITCH */
-       XENO_BUGON(NUCLEUS, !irqs_disabled_hw());
        xnthread_clear_info(thread, XNATOMIC);
 
        /* Rare case: we might have been awaken by a signal before the
@@ -1126,6 +1125,8 @@ redo:
                return -ERESTARTSYS;
        }
 
+       XENO_BUGON(NUCLEUS, !irqs_disabled_hw());
+
        /* "current" is now running into the Xenomai domain. */
 
 #ifdef CONFIG_XENO_HW_FPU


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

Reply via email to