arm-trusted-firmware/common
Sandrine Bailleux 9e7d66314a Refactor load_auth_image_internal().
The pre-processor directives make it hard to read the non-TBB version of
this function. Refactor the code to improve readability. No functional
change introduced.

In particular, introduce a new helper function load_image_flush(),
that simply loads an image and flushes it out to main memory. This is
the only thing load_auth_image_internal() needs to do when TBB is
disabled or when authentication is dynamically disabled.

In other cases, we need to recursively authenticate the parent images up
to the root of trust. To make this clearer, this code gets moved to a
TBB-specific helper function called load_auth_image_recursive().

As a result, load_auth_image_internal() now boils down to calling the
right helper function (depending on TBB enablement and dynamic
authentication status).

Change-Id: I20a39a3b833810b97ecf4219358e7d2cac263890
Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
2019-11-14 11:20:27 +01:00
..
aarch32 ARMv7 may not support Virtualization Extensions 2017-11-08 14:38:33 +01:00
aarch64 Move assembly newline function into common debug code 2019-08-29 12:00:59 +00:00
backtrace Switch AARCH32/AARCH64 to __aarch64__ 2019-08-01 13:45:03 -07:00
bl_common.c Refactor load_auth_image_internal(). 2019-11-14 11:20:27 +01:00
desc_image_load.c Add helper to parse BL31 parameters (both versions) 2019-07-23 20:25:34 -07:00
fdt_fixup.c FDT helper functions: Respect architecture in PSCI function IDs 2019-09-25 11:45:35 +01:00
fdt_wrappers.c Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
image_decompress.c Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
runtime_svc.c Remove support for the SMC Calling Convention 2.0 2019-01-30 16:01:49 +00:00
tf_log.c Remove references to old project name from common files 2019-07-10 11:13:00 +01:00