arm-trusted-firmware/bl31
Yatharth Kochar 79a97b2ef7 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
2015-01-26 19:04:15 +00:00
..
aarch64 Call reset handlers upon BL3-1 entry. 2015-01-26 19:04:15 +00:00
bl31.ld.S Remove coherent memory from the BL memory maps 2015-01-22 10:57:44 +00:00
bl31.mk Move bakery algorithm implementation out of coherent memory 2015-01-22 10:57:44 +00:00
bl31_main.c Rationalize console log output 2014-08-12 16:51:18 +01:00
context_mgmt.c Merge pull request #206 from soby-mathew/sm/reset_cntvoff 2014-10-10 12:13:48 +01:00
cpu_data_array.c Rework the crash reporting in BL3-1 to use less stack 2014-07-28 11:03:20 +01:00
interrupt_mgmt.c Demonstrate model for routing IRQs to EL3 2015-01-26 15:29:32 +00:00
runtime_svc.c Remove all checkpatch errors from codebase 2014-06-24 12:50:00 +01:00