]> git.baikalelectronics.ru Git - arm-tf.git/commit
refactor(build): distinguish BL2 as TF-A entry point and BL2 running at EL3
authorArvind Ram Prakash <arvind.ramprakash@arm.com>
Tue, 22 Nov 2022 20:41:00 +0000 (14:41 -0600)
committerMaksims Svecovs <maksims.svecovs@arm.com>
Wed, 15 Mar 2023 11:43:14 +0000 (11:43 +0000)
commit42d4d3baacb3b11c68163ec85de1bf2e34e0c882
tree5718f07f5a2367f1fb58e3a79d02aa1e1d3587ea
parentff65ac24409f0ed5025ff3005ffe4a1f98353166
refactor(build): distinguish BL2 as TF-A entry point and BL2 running at EL3

BL2_AT_EL3 is an overloaded macro which has two uses:
1. When BL2 is entry point into TF-A(no BL1)
2. When BL2 is running at EL3 exception level
These two scenarios are not exactly same even though first implicitly
means second to be true. To distinguish between these two use cases we
introduce new macros.
BL2_AT_EL3 is renamed to RESET_TO_BL2 to better convey both 1. and 2.
Additional macro BL2_RUNS_AT_EL3 is added to cover all scenarious where
BL2 runs at EL3 (including four world systems).

BREAKING CHANGE: BL2_AT_EL3 renamed to RESET_TO_BL2 across the
repository.

Change-Id: I477e1d0f843b44b799c216670e028fcb3509fb72
Signed-off-by: Arvind Ram Prakash <arvind.ramprakash@arm.com>
Signed-off-by: Maksims Svecovs <maksims.svecovs@arm.com>
51 files changed:
Makefile
bl2/bl2.mk
bl2/bl2_main.c
docs/design/firmware-design.rst
docs/getting_started/build-options.rst
docs/plat/arm/corstone1000/index.rst
docs/plat/stm32mp1.rst
include/arch/aarch32/el3_common_macros.S
include/arch/aarch64/el2_common_macros.S
include/arch/aarch64/el3_common_macros.S
include/lib/cpus/aarch32/cpu_macros.S
include/plat/arm/common/arm_def.h
include/plat/common/platform.h
lib/aarch64/misc_helpers.S
lib/cpus/aarch32/cpu_helpers.S
lib/cpus/aarch64/cpu_helpers.S
lib/cpus/errata_report.c
make_helpers/defaults.mk
make_helpers/tbbr/tbbr_tools.mk
plat/arm/board/fvp/fvp_bl2_setup.c
plat/arm/board/fvp/fvp_bl31_setup.c
plat/arm/board/fvp/fvp_common.c
plat/arm/board/fvp/fvp_console.c
plat/arm/board/fvp/fvp_topology.c
plat/arm/board/fvp/platform.mk
plat/arm/board/fvp/sp_min/fvp_sp_min_setup.c
plat/arm/board/fvp/sp_min/sp_min-fvp.mk
plat/arm/board/juno/juno_common.c
plat/arm/board/morello/morello_plat.c
plat/arm/board/n1sdp/n1sdp_plat.c
plat/arm/board/tc/tc_plat.c
plat/arm/common/arm_bl2_el3_setup.c
plat/arm/common/arm_common.mk
plat/arm/common/arm_dyn_cfg.c
plat/arm/css/sgi/sgi_plat.c
plat/arm/css/sgi/sgi_plat_v2.c
plat/hisilicon/hikey/platform.mk
plat/hisilicon/hikey960/platform.mk
plat/imx/imx7/picopi/platform.mk
plat/imx/imx7/warp7/platform.mk
plat/imx/imx8m/imx8mm/platform.mk
plat/imx/imx8m/imx8mp/platform.mk
plat/intel/soc/agilex/platform.mk
plat/intel/soc/n5x/platform.mk
plat/intel/soc/stratix10/platform.mk
plat/nxp/common/setup/common.mk
plat/nxp/soc-ls1046a/aarch64/ls1046a_helpers.S
plat/renesas/common/common.mk
plat/socionext/synquacer/platform.mk
plat/socionext/uniphier/platform.mk
plat/st/stm32mp1/platform.mk