Call reset handlers upon BL3-1 entry.
This patch adds support to call the reset_handler() function in BL3-1 in the
cold and warm boot paths when another Boot ROM reset_handler() has already run.

This means the BL1 and BL3-1 versions of the CPU and platform specific reset
handlers may execute different code to each other. This enables a developer to
perform additional actions or undo actions already performed during the first
call of the reset handlers e.g. apply additional errata workarounds.

Typically, the reset handler will be first called from the BL1 Boot ROM. Any
additional functionality can be added to the reset handler when it is called
from BL3-1 resident in RW memory. The constant FIRST_RESET_HANDLER_CALL is used
to identify whether this is the first version of the reset handler code to be
executed or an overridden version of the code.

The Cortex-A57 errata workarounds are applied only if they have not already been
applied.

Fixes ARM-software/tf-issue#275

Change-Id: Id295f106e4fda23d6736debdade2ac7f2a9a9053
1 parent 9d21255 commit 79a97b2ef723365663b403223002d29aeb675c85
@Yatharth Kochar Yatharth Kochar authored on 20 Nov 2014
Achin Gupta committed on 26 Jan 2015
Showing 10 changed files
View
bl31/aarch64/bl31_entrypoint.S
View
docs/firmware-design.md
View
docs/porting-guide.md
View
include/common/bl_common.h
View
include/lib/cpus/aarch64/cpu_macros.S
View
lib/cpus/aarch64/cortex_a53.S
View
lib/cpus/aarch64/cortex_a57.S
View
lib/cpus/aarch64/cpu_helpers.S
View
plat/juno/aarch64/plat_helpers.S
View
services/std_svc/psci/psci_entry.S