]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: shmobile: Move shmobile_scu_base from .text to .bss
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 28 Jan 2016 15:04:21 +0000 (16:04 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Wed, 17 Feb 2016 09:24:13 +0000 (18:24 +0900)
shmobile_scu_base is being written to, so it doesn't belong in the .text
section. Fix this by moving it from asm .text to C .bss, as it's no
longer used from asm code since commit 4f6da36f7edd5790 ("ARM: shmobile:
Remove old SCU boot code").

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/headsmp-scu.S
arch/arm/mach-shmobile/platsmp-scu.c

index fa5248c52399c9b5e78e3c1cd7c167523f306424..5e503d91ad70ddf2b8f375ffaf36a09361c9be8c 100644 (file)
@@ -38,9 +38,3 @@ ENTRY(shmobile_boot_scu)
 
        b       secondary_startup
 ENDPROC(shmobile_boot_scu)
-
-       .text
-       .align  2
-       .globl  shmobile_scu_base
-shmobile_scu_base:
-       .space  4
index 64663110ab6ca0e1d8f06cc04e69175165e2cace..f2198c9c743597369166cabded6abf3eb29ce2cf 100644 (file)
@@ -17,6 +17,9 @@
 #include <asm/smp_scu.h>
 #include "common.h"
 
+
+void __iomem *shmobile_scu_base;
+
 static int shmobile_smp_scu_notifier_call(struct notifier_block *nfb,
                                          unsigned long action, void *hcpu)
 {