public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] ARM: move __fixup_smp out of init section
@ 2014-02-25 18:16 Rob Herring
  2014-02-25 18:32 ` Arnd Bergmann
  2014-02-26 12:24 ` Russell King - ARM Linux
  0 siblings, 2 replies; 8+ messages in thread
From: Rob Herring @ 2014-02-25 18:16 UTC (permalink / raw)
  To: linux-arm-kernel

From: Rob Herring <robh@kernel.org>

With large kernel builds such as allyesconfig exceeding maximum relative
branch offsets, the init section will be too far away to branch to
directly. This causes veneers to be added by the compiler, but veneers
don't work before the MMU is enabled. Fix this by moving __fixup_smp to
the .head.text section as it is not very big.

Signed-off-by: Rob Herring <robh@kernel.org>
---
 arch/arm/kernel/head.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/kernel/head.S b/arch/arm/kernel/head.S
index 914616e..78e1443 100644
--- a/arch/arm/kernel/head.S
+++ b/arch/arm/kernel/head.S
@@ -475,7 +475,7 @@ ENDPROC(__turn_mmu_on)
 
 
 #ifdef CONFIG_SMP_ON_UP
-	__INIT
+	__HEAD
 __fixup_smp:
 	and	r3, r9, #0x000f0000	@ architecture version
 	teq	r3, #0x000f0000		@ CPU ID supported?
-- 
1.8.3.2

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-02-26 20:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-25 18:16 [PATCH] ARM: move __fixup_smp out of init section Rob Herring
2014-02-25 18:32 ` Arnd Bergmann
2014-02-25 21:05   ` Rob Herring
2014-02-25 21:10     ` Arnd Bergmann
2014-02-25 21:46       ` Rob Herring
2014-02-25 21:56         ` Arnd Bergmann
2014-02-26 12:24 ` Russell King - ARM Linux
2014-02-26 20:56   ` Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox