Unmask SError interrupt and clear SCR_EL3.EA bit
authorAchin Gupta <achin.gupta@arm.com>
Mon, 4 Aug 2014 22:13:10 +0000 (23:13 +0100)
committerAchin Gupta <achin.gupta@arm.com>
Fri, 15 Aug 2014 09:21:50 +0000 (10:21 +0100)
commit0c8d4fef28768233f1f46b4d085f904293dffd2c
treef921b7d842ce3a7be0e7e701f35fbea187e8dee6
parentc1efc4c0666b95912b54e079de484d8c2249e045
Unmask SError interrupt and clear SCR_EL3.EA bit

This patch disables routing of external aborts from lower exception levels to
EL3 and ensures that a SError interrupt generated as a result of execution in
EL3 is taken locally instead of a lower exception level.

The SError interrupt is enabled in the TSP code only when the operation has not
been directly initiated by the normal world. This is to prevent the possibility
of an asynchronous external abort which originated in normal world from being
taken when execution is in S-EL1.

Fixes ARM-software/tf-issues#153

Change-Id: I157b996c75996d12fd86d27e98bc73dd8bce6cd5
bl1/aarch64/bl1_arch_setup.c
bl1/aarch64/bl1_entrypoint.S
bl1/aarch64/bl1_exceptions.S
bl2/aarch64/bl2_entrypoint.S
bl31/aarch64/bl31_arch_setup.c
bl31/aarch64/bl31_entrypoint.S
bl31/aarch64/runtime_exceptions.S
bl32/tsp/aarch64/tsp_entrypoint.S
bl32/tsp/aarch64/tsp_exceptions.S
services/std_svc/psci/psci_entry.S