aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSoby Mathew <soby.mathew@arm.com>2014-08-14 12:22:32 +0100
committerDan Handley <dan.handley@arm.com>2014-08-20 19:14:31 +0100
commit24fb838f965cc1250831cd021d6a18b0d371b853 (patch)
tree877c35292a581402607cee7287db1e25faa27a53 /lib
parent9b4768417051ead50135d1d7675cab940d864e8d (diff)
downloadtrusted-firmware-a-24fb838f965cc1250831cd021d6a18b0d371b853.tar.gz
Add platform API for reset handling
This patch adds an optional platform API (plat_reset_handler) which allows the platform to perform any actions immediately after a cold or warm reset e.g. implement errata workarounds. The function is called with MMU and caches turned off. This API is weakly defined and does nothing by default but can be overriden by a platform with a strong definition. Change-Id: Ib0acdccbd24bc756528a8bd647df21e8d59707ff
Diffstat (limited to 'lib')
-rw-r--r--lib/cpus/aarch64/cpu_helpers.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/cpus/aarch64/cpu_helpers.S b/lib/cpus/aarch64/cpu_helpers.S
index d25d1a30ea..6db04ed92d 100644
--- a/lib/cpus/aarch64/cpu_helpers.S
+++ b/lib/cpus/aarch64/cpu_helpers.S
@@ -47,6 +47,8 @@
func reset_handler
mov x10, x30
+ bl plat_reset_handler
+
/* Get the matching cpu_ops pointer */
bl get_cpu_ops_ptr
#if ASM_ASSERTION
@@ -60,6 +62,7 @@ func reset_handler
blr x2
1:
ret x10
+
#endif /* IMAGE_BL1 || (IMAGE_BL31 && RESET_TO_BL31) */
/*