arm-trusted-firmware/include
Jeenu Viswambharan af34cd72ca EHF: Introduce preempted return code parameter to ehf_allow_ns_preemption()
When a Yielding SMC is preempted, it's possible that Non-secure world is
resumed afterwards. In this case, Non-secure execution would find itself
in a state where the SMC has returned. However, the dispatcher might not
get an opportunity to populate the corrected return code for having
been preempted, and therefore the caller of the Yielding SMC cannot
reliably determine whether the SMC had successfully completed or had
been preempted.

To solve this, this patch introduces a new parameter to the
ehf_allow_ns_preemption() API. An SPD, through this parameter, would
provide the expected error code when a Yielding SMC is preempted. EHF
can then populate the specified value in x0 of the Non-secure context so
that the caller of the Yielding SMC correctly identifies the SMC return
as a preemption.

Documentation updates to follow.

Change-Id: Ia9c3f8f03f9d72d81aa235eaae2ee0374b972e1e
Signed-off-by: Jeenu Viswambharan <jeenu.viswambharan@arm.com>
2018-02-27 13:46:33 +00:00
..
bl1 FWU: Introduce FWU_SMC_IMAGE_RESET 2017-06-01 14:52:12 +01:00
bl31 EHF: Introduce preempted return code parameter to ehf_allow_ns_preemption() 2018-02-27 13:46:33 +00:00
bl32 spd: tlkd: support for "NS memory ranges" function ID 2018-01-08 16:00:15 -08:00
common Merge pull request #1173 from etienne-lms/armv7-qemu 2018-02-07 11:57:19 +08:00
drivers drivers:ufs: fix hynix ufs bug with quirk on hi36xx SoC 2018-02-24 09:30:41 +08:00
lib Redefine SMC_UNK as -1 instead of 0xFFFFFFFF 2018-02-15 15:04:34 +00:00
plat bl1: add bl1_plat_handle_{pre,post}_image_load() 2018-02-02 00:19:04 +09:00
services Implement support for SMCCC v1.1 2018-01-29 09:58:57 +00:00
tools_share Support Trusted OS firmware extra images in TF tools 2017-08-09 18:06:05 +08:00