arm-trusted-firmware/bl31/aarch64
Sandrine Bailleux 52010cc779 Rationalize reset handling code
The attempt to run the CPU reset code as soon as possible after reset
results in highly complex conditional code relating to the
RESET_TO_BL31 option.

This patch relaxes this requirement a little. In the BL1, BL3-1 and
PSCI entrypoints code, the sequence of operations is now as follows:
 1) Detect whether it is a cold or warm boot;
 2) For cold boot, detect whether it is the primary or a secondary
    CPU. This is needed to handle multiple CPUs entering cold reset
    simultaneously;
 3) Run the CPU init code.

This patch also abstracts the EL3 registers initialisation done by
the BL1, BL3-1 and PSCI entrypoints into common code.

This improves code re-use and consolidates the code flows for
different types of systems.

NOTE: THE FUNCTION plat_secondary_cold_boot() IS NOW EXPECTED TO
NEVER RETURN. THIS PATCH FORCES PLATFORM PORTS THAT RELIED ON THE
FORMER RETRY LOOP AT THE CALL SITE TO MODIFY THEIR IMPLEMENTATION.
OTHERWISE, SECONDARY CPUS WILL PANIC.

Change-Id: If5ecd74d75bee700b1bd718d23d7556b8f863546
2015-06-04 11:38:54 +01:00
..
bl31_arch_setup.c Initialise cpu ops after enabling data cache 2015-03-13 10:38:09 +00:00
bl31_entrypoint.S Rationalize reset handling code 2015-06-04 11:38:54 +01:00
context.S Add support to indicate size and end of assembly functions 2015-04-08 13:02:59 +01:00
cpu_data.S Add support to indicate size and end of assembly functions 2015-04-08 13:02:59 +01:00
crash_reporting.S Add support to indicate size and end of assembly functions 2015-04-08 13:02:59 +01:00
runtime_exceptions.S Add support to indicate size and end of assembly functions 2015-04-08 13:02:59 +01:00