Skip to content

Commit c07b5fd

Browse files
yingjoeRussell King
authored andcommitted
ARM: 8359/1: correct secondary_startup_arm mode
secondary_startup_arm is used as ARM mode secondary start up function when ther kernel is compiled in THUMB mode, however the label itself is still in .thumb mode. readelf shows: 160979: c020a581 120 FUNC GLOBAL DEFAULT 2 secondary_startup_arm Make sure the label is in ARM mode as well. Signed-off-by: Yingjoe Chen <yingjoe.chen@mediatek.com> Tested-by: Matthias Brugger <matthias.bgg@gmail.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent 5b290ec commit c07b5fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/arm/kernel/head.S‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,8 @@ __turn_mmu_on_loc:
346346

347347
#if defined(CONFIG_SMP)
348348
.text
349-
ENTRY(secondary_startup_arm)
350349
.arm
350+
ENTRY(secondary_startup_arm)
351351
THUMB( adr r9, BSYM(1f) ) @ Kernel is entered in ARM.
352352
THUMB( bx r9 ) @ If this is a Thumb-2 kernel,
353353
THUMB( .thumb ) @ switch to Thumb now.

0 commit comments

Comments
 (0)