Fixup `SMCCC_ARCH_FEATURES` semantics
authorDimitris Papastamos <dimitris.papastamos@arm.com>
Mon, 12 Mar 2018 14:47:09 +0000 (14:47 +0000)
committerDimitris Papastamos <dimitris.papastamos@arm.com>
Wed, 14 Mar 2018 11:19:53 +0000 (11:19 +0000)
commita205a56ea891c354c642713701075fec28906c40
tree1628809d59852289308473302ff04414388b8737
parent3991a6a49f3cf8d0b30a2800428e60454e2f92dd
Fixup `SMCCC_ARCH_FEATURES` semantics

When querying `SMCCC_ARCH_WORKAROUND_1` through `SMCCC_ARCH_FEATURES`,
return either:
  * -1 to indicate the PE on which `SMCCC_ARCH_FEATURES` is called
    requires firmware mitigation for CVE-2017-5715 but the mitigation
    is not compiled in.
  * 0 to indicate that firmware mitigation is required, or
  * 1 to indicate that no firmware mitigation is required.

This patch complies with v1.2 of the firmware interfaces
specification (ARM DEN 0070A).

Change-Id: Ibc32d6620efdac6c340758ec502d95554a55f02a
Signed-off-by: Dimitris Papastamos <dimitris.papastamos@arm.com>
bl31/bl31.mk
include/lib/cpus/aarch64/cpu_macros.S
include/lib/cpus/workaround_cve_2017_5715.h [new file with mode: 0644]
lib/cpus/aarch64/cortex_a57.S
lib/cpus/aarch64/cortex_a72.S
lib/cpus/aarch64/cortex_a73.S
lib/cpus/aarch64/cortex_a75.S
lib/cpus/aarch64/cpu_helpers.S
services/arm_arch_svc/arm_arch_svc_setup.c