Commit 3451d2f3 authored by Philippe Gerum's avatar Philippe Gerum
Browse files

evl/thread: non-EVL tasks might receive trap notifications


Signed-off-by: default avatarPhilippe Gerum <rpm@xenomai.org>
parent 0ed10acf
......@@ -1523,7 +1523,16 @@ void handle_oob_trap_entry(unsigned int trapnr, struct pt_regs *regs)
if (in_nmi())
return;
/*
* We might be running oob over a non-dovetailed task context
* (e.g. taking a trap on top of evl_schedule() ->
* run_oob_call()). In this case, there is nothing we
* can/should do, just bail out.
*/
curr = evl_current();
if (curr == NULL)
return;
if (curr->local_info & T_INFAULT) {
note_trap(curr, trapnr, regs, "recursive fault");
return;
......
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