Skip to content
Commit fc56050e authored by Andy Ross's avatar Andy Ross Committed by Anas Nashif
Browse files

kernel/spinlock: Fix SPIN_VALIDATE in ISRs



Spinlocks taken in ISRs were storing the _current thread pointer of
the interrupted thread as the owner, which was never strictly correct
but was benign as the thread would never run until the lock was
released.

But now k_thread_abort(_current) in an ISR has been fixed to eliminate
all references to the (now aborted) thread struct, and _current points
to a dummy thread.  Handle that edge case in the validation framework.

Signed-off-by: default avatarAndy Ross <andyross@google.com>
parent cef2ac55
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment