Commit e3a8e572 authored by Philippe Gerum's avatar Philippe Gerum Committed by Jan Kiszka

cobalt/process: remove superfluous check for non-relaxed state

If sched->curr is not the root thread, it has to refer to a Cobalt
thread currently running in primary mode, by design. Convert this
check to an assertion.
Signed-off-by: Philippe Gerum's avatarPhilippe Gerum <rpm@xenomai.org>
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent a97cf34b
......@@ -812,11 +812,10 @@ static inline int handle_exception(struct ipipe_trap_data *d)
if (xnarch_fault_bp_p(d) && user_mode(d->regs)) {
spl_t s;
XENO_WARN_ON(CORE, xnthread_test_state(thread, XNRELAX));
xnlock_get_irqsave(&nklock, s);
if (!xnthread_test_state(thread, XNRELAX)) {
xnthread_set_info(thread, XNCONTHI);
ipipe_enable_user_intret_notifier();
}
xnthread_set_info(thread, XNCONTHI);
ipipe_enable_user_intret_notifier();
stop_debugged_process(thread);
xnlock_put_irqrestore(&nklock, s);
xnsched_run();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment