]> git.baikalelectronics.ru Git - arm-tf.git/commit
TSPD: Explicitly allow NS preemption for Yielding SMCs
authorJeenu Viswambharan <jeenu.viswambharan@arm.com>
Wed, 10 Jan 2018 15:22:49 +0000 (15:22 +0000)
committerJeenu Viswambharan <jeenu.viswambharan@arm.com>
Tue, 6 Feb 2018 07:58:55 +0000 (07:58 +0000)
commit1dd022ca6a820b30faa91187572d4c0ce8fdb270
tree175383bc8f1f63a4ef8cfab1fe8c3217cc762d30
parent26ea390891154aaa3c0236f3c206342cc5d3fdc0
TSPD: Explicitly allow NS preemption for Yielding SMCs

When EL3 exception handling is in effect (i.e.,
EL3_EXCEPTION_HANDLING=1), Non-secure interrupts can't preempt Secure
execution. However, for yielding SMCs, preemption by Non-secure
interupts is intended.

This patch therefore adds a call to ehf_allow_ns_preemption() before
dispatching a Yielding SMC to TSP.

Change-Id: Ia3a1ae252f3adc0f14e6d7e0502f251bdb349bdf
Signed-off-by: Jeenu Viswambharan <jeenu.viswambharan@arm.com>
services/spd/tspd/tspd_main.c