aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamas Ban <tamas.ban@arm.com>2019-02-08 14:27:31 +0000
committerTamas Ban <tamas.ban@arm.com>2019-02-13 14:03:56 +0100
commitc2f181e5ca4fce219c0e513bd3bf22e25dbdba5d (patch)
treec013c13ab037b00bb0b7b6e60261819b723b32a5
parente8302b5d73f1ddedab6db2d39f6d8c552d66d97d (diff)
downloadtrusted-firmware-m-c2f181e5ca4fce219c0e513bd3bf22e25dbdba5d.tar.gz
Platform: Stop core-1 in MPS2-AN521
MPS2 board firmware starts both core after reset. Both core executes the same code. Sometimes core-0 can crash because they share the same memory. This patch checks the core ID in the boot loader start-up code and put core-1 in an infinite loop to avoid crash. Change-Id: I9f4078dd6e8e4b73ab85abc8cfd0fc37cce339d8 Signed-off-by: Tamas Ban <tamas.ban@arm.com>
-rw-r--r--platform/ext/target/mps2/an521/armclang/startup_cmsdk_mps2_an521_bl2.s9
1 files changed, 8 insertions, 1 deletions
diff --git a/platform/ext/target/mps2/an521/armclang/startup_cmsdk_mps2_an521_bl2.s b/platform/ext/target/mps2/an521/armclang/startup_cmsdk_mps2_an521_bl2.s
index 404f2a5d..615d608c 100644
--- a/platform/ext/target/mps2/an521/armclang/startup_cmsdk_mps2_an521_bl2.s
+++ b/platform/ext/target/mps2/an521/armclang/startup_cmsdk_mps2_an521_bl2.s
@@ -1,5 +1,5 @@
;/*
-; * Copyright (c) 2016-2018 ARM Limited
+; * Copyright (c) 2016-2019 ARM Limited
; *
; * Licensed under the Apache License, Version 2.0 (the "License");
; * you may not use this file except in compliance with the License.
@@ -162,6 +162,13 @@ Reset_Handler PROC
EXPORT Reset_Handler [WEAK]
IMPORT SystemInit
IMPORT __main
+ ; Only run on core 0
+ MOV r0, #0x50000000
+ ADD r0, #0x0001F000
+ LDR r0, [r0]
+ CMP r0,#0
+not_the_core_to_run_on
+ BNE not_the_core_to_run_on
LDR R0, =SystemInit
BLX R0
LDR R0, =__main