]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
lib/cpus: fix branching in reset function for cortex-a72 AARCH32 mode
authorManoj Kumar <manoj.kumar3@arm.com>
Fri, 19 Jan 2018 12:21:31 +0000 (17:51 +0530)
committerManoj Kumar <manoj.kumar3@arm.com>
Fri, 19 Jan 2018 12:21:31 +0000 (17:51 +0530)
In AARCH32 mode, cortex_a72_reset_func branches to address in lr
register instead of r5 register. This leads to linux boot failure
of Cortex-A72 cores in AARCH32 mode on Juno-R2 board.

This patch fixes the branching of cortex_a72_reset_func to r5
register as in cortex_a57_reset_func implementation.

Signed-off-by: Manoj Kumar <manoj.kumar3@arm.com>
lib/cpus/aarch32/cortex_a72.S

index 75505206430b49759dc1e63790c4234502f516d1..35b9bc2e6d61b515044bdc6124ba70b8cdb6a128 100644 (file)
@@ -109,7 +109,7 @@ func cortex_a72_reset_func
        orr64_imm       r0, r1, CORTEX_A72_ECTLR_SMP_BIT
        stcopr16        r0, r1, CORTEX_A72_ECTLR
        isb
-       bx      lr
+       bx      r5
 endfunc cortex_a72_reset_func
 
        /* ----------------------------------------------------