juno: Fix bug in plat_get_my_entrypoint
authorRoberto Vargas <roberto.vargas@arm.com>
Fri, 1 Sep 2017 14:08:47 +0000 (15:08 +0100)
committerRoberto Vargas <roberto.vargas@arm.com>
Wed, 6 Sep 2017 13:44:56 +0000 (14:44 +0100)
commitd9b7636e2b53089a466257d3b03195b01a2fca43
tree9489d4d80c8f04322bed48f012f92b98113f4199
parent942ee0d8cf936387c5e7891237e5fb0d58d7d250
juno: Fix bug in plat_get_my_entrypoint

plat_get_my_entrypoint was branching to juno_do_reset_to_aarch_32_state,
which is not supposed to return, and in case of returning it implemented
an infinite loop. The problem was that plat_get_my_entrypoint was using
"b" instead of "bl", so juno_do_reset_to_aarch_32_state was returning to
the caller of plat_get_my_entrypoint instead of stop the system with a
panic.

To avoid this problem juno_do_reset_to_aarch_32_state was modified to
call directly to plat_panic_handler if it tries to return.

Change-Id: I591cf2dd78d27d8568fb15b91366e4b3dce027b5
Signed-off-by: Roberto Vargas <roberto.vargas@arm.com>
plat/arm/board/juno/aarch64/juno_helpers.S