Skip to content

Commit

Permalink
ARM: shmobile: Force ARM mode to compile reset vector for secondary CPUs
Browse files Browse the repository at this point in the history
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: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
  • Loading branch information
Tetsuyuki Kobayashi authored and Simon Horman committed Jul 17, 2013
1 parent bdea6c6 commit c1d7e2e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arch/arm/mach-shmobile/headsmp.S
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,13 @@ ENDPROC(shmobile_invalidate_start)
* This will be mapped at address 0 by SBAR register.
* We need _long_ jump to the physical address.
*/
.arm
.align 12
ENTRY(shmobile_boot_vector)
ldr r0, 2f
ldr pc, 1f
ldr r1, 1f
bx r1

ENDPROC(shmobile_boot_vector)

.globl shmobile_boot_fn
Expand Down

0 comments on commit c1d7e2e

Please sign in to comment.