arm-trusted-firmware/lib
Alexei Fedorov 9fc59639e6 Add support for Branch Target Identification
This patch adds the functionality needed for platforms to provide
Branch Target Identification (BTI) extension, introduced to AArch64
in Armv8.5-A by adding BTI instruction used to mark valid targets
for indirect branches. The patch sets new GP bit [50] to the stage 1
Translation Table Block and Page entries to denote guarded EL3 code
pages which will cause processor to trap instructions in protected
pages trying to perform an indirect branch to any instruction other
than BTI.
BTI feature is selected by BRANCH_PROTECTION option which supersedes
the previous ENABLE_PAUTH used for Armv8.3-A Pointer Authentication
and is disabled by default. Enabling BTI requires compiler support
and was tested with GCC versions 9.0.0, 9.0.1 and 10.0.0.
The assembly macros and helpers are modified to accommodate the BTI
instruction.
This is an experimental feature.
Note. The previous ENABLE_PAUTH build option to enable PAuth in EL3
is now made as an internal flag and BRANCH_PROTECTION flag should be
used instead to enable Pointer Authentication.
Note. USE_LIBROM=1 option is currently not supported.

Change-Id: Ifaf4438609b16647dc79468b70cd1f47a623362e
Signed-off-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
2019-05-24 14:44:45 +01:00
..
aarch32 Cortex A9:errata 794073 workaround 2019-04-12 10:10:32 +00:00
aarch64 Add support for Branch Target Identification 2019-05-24 14:44:45 +01:00
compiler-rt compiler_rt: Import lshrdi3.c file 2018-11-06 15:42:51 +01:00
coreboot Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
cpus Add support for Branch Target Identification 2019-05-24 14:44:45 +01:00
el3_runtime Fix restoring APIBKey registers 2019-03-14 13:57:16 +01:00
extensions Add support for Branch Target Identification 2019-05-24 14:44:45 +01:00
libc Remove several warnings reported with W=1 2019-04-01 10:43:42 +01:00
libfdt libfdt: Downgrade to version 1.4.6-9 2018-10-30 13:42:13 +00:00
locks Remove .arch directives from spinlock.S 2019-05-13 09:50:27 +01:00
optee Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
pmf Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
psci Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
romlib romlib: Improve compilation flags definition 2019-05-21 07:11:55 +00:00
semihosting Remove several warnings reported with W=2 2019-04-01 10:43:42 +01:00
sprt SPM: Introduce SPRT C host library 2018-12-11 15:04:24 +00:00
stack_protector Add support for default stack-protector flag 2019-04-30 14:42:40 +01:00
utils plat/arm: Sanitise includes 2019-01-25 16:04:10 +00:00
xlat_tables SPM: Move shim layer to TTBR1_EL1 2019-04-03 10:51:31 +01:00
xlat_tables_v2 Add support for Branch Target Identification 2019-05-24 14:44:45 +01:00
zlib Sanitise includes across codebase 2019-01-04 10:43:17 +00:00