SPM: Fix thrd_next
This patch fix read-write access to thread object by thrd_next function.
Thread object should be protected by critical section, to avoid
concurrent read-write access by SVC, PendSV and/or IRQ handlers.
thrd_next (THRD_EXPECTING_SCHEDULE) is called by spm_handle_interrupt
for IPC backend. So, it's possible that function is reentered by
multiple IRQ/PendSV calls and SVC handler.
Signed-off-by: Roman Mazurak <roman.mazurak@infineon.com>
Change-Id: I785c9036d9b97d5f3fd1529427c1cfd0a51f6cf9
1 file changed