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 <>
Signed-off-by: Jan Kiszka's avatarJan Kiszka <>
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);
xnthread_set_info(thread, XNCONTHI);
xnlock_put_irqrestore(&nklock, s);
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