-
Bottom line: the root thread is special, in that it must always be in a runnable state, never bear any blocking bit. Running the trap handler when sched->curr points at the root thread means that we got a synchronous exception while running regular root context code on the head stage, which is not related to any action we might want to perform in the handler for Cobalt threads. Return early in such a case. Signed-off-by: Philippe Gerum <rpm@xenomai.org> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
58f7c2f8