Skip to content
Commit 67c1a6bc authored by Kevin Townsend's avatar Kevin Townsend Committed by Carles Cufí
Browse files

modules: tf-m: Fix thread preemption toggling



Fixes an issue where thread preemption was not being disabled
correctly, failing to taking into account MetaIRQ, which can be
used to preempt any cooperative thread.

The updated code sets the current thread to `K_HIGHEST_THREAD_PRIO`
before calling the secure function, and restores the thread priority
level once secure execution has terminated, allowing the thread
to be preempted once again.

Signed-off-by: default avatarKevin Townsend <kevin.townsend@linaro.org>
parent 7b364c7f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment