Commit c1d7e2e8 authored by Tetsuyuki Kobayashi's avatar Tetsuyuki Kobayashi Committed by Simon Horman

ARM: shmobile: Force ARM mode to compile reset vector for secondary CPUs

Instructions start from boot vector must be ARM mode.
This patch specify ARM mode explicitly and use 'bx' instruction to be
able to change to Thumb mode.
Signed-off-by: default avatarTetsuyuki Kobayashi <koba@kmckk.co.jp>
Acked-by: default avatarMagnus Damm <damm@opensource.se>
Signed-off-by: default avatarSimon Horman <horms+renesas@verge.net.au>
parent bdea6c65
...@@ -26,10 +26,13 @@ ENDPROC(shmobile_invalidate_start) ...@@ -26,10 +26,13 @@ ENDPROC(shmobile_invalidate_start)
* This will be mapped at address 0 by SBAR register. * This will be mapped at address 0 by SBAR register.
* We need _long_ jump to the physical address. * We need _long_ jump to the physical address.
*/ */
.arm
.align 12 .align 12
ENTRY(shmobile_boot_vector) ENTRY(shmobile_boot_vector)
ldr r0, 2f ldr r0, 2f
ldr pc, 1f ldr r1, 1f
bx r1
ENDPROC(shmobile_boot_vector) ENDPROC(shmobile_boot_vector)
.globl shmobile_boot_fn .globl shmobile_boot_fn
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment