Implement support for SMCCC v1.1
authorDimitris Papastamos <dimitris.papastamos@arm.com>
Fri, 19 Jan 2018 16:58:29 +0000 (16:58 +0000)
committerDimitris Papastamos <dimitris.papastamos@arm.com>
Mon, 29 Jan 2018 09:58:57 +0000 (09:58 +0000)
commit3a1b0676c72989d75276da7f11e89d00933eccdd
tree7822586376e372e8ff2d0e71c9152a083a881454
parent201ca5b6b49197a2c22b3bb0b519d63758fff0b7
Implement support for SMCCC v1.1

SMCCC v1.1 comes with a relaxed calling convention for AArch64
callers.  The caller only needs to save x0-x3 before doing an SMC
call.

This patch adds support for SMCCC_VERSION and SMCCC_ARCH_FEATURES.

Refer to "Firmware Interfaces for mitigating CVE_2017_5715 System
Software on Arm Systems"[0] for more information.

[0] https://developer.arm.com/-/media/developer/pdf/ARM%20DEN%200070A%20Firmware%20interfaces%20for%20mitigating%20CVE-2017-5715_V1.0.pdf

Change-Id: If5b1c55c17d6c5c7cb9c2c3ed355d3a91cdad0a9
Signed-off-by: Dimitris Papastamos <dimitris.papastamos@arm.com>
bl31/bl31.mk
include/lib/smcc.h
include/services/arm_arch_svc.h [new file with mode: 0644]
services/arm_arch_svc/arm_arch_svc_setup.c [new file with mode: 0644]