aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPawel Moll <pawel.moll@arm.com>2011-12-15 09:02:33 -0500
committerRob Herring <rob.herring@calxeda.com>2012-01-16 09:35:25 -0500
commit764a579fb56a9205a9212250e625efe2b11e3f96 (patch)
tree87ce1089712267471579dd33537c34acad65b70e
parent805a6af8dba5dfdd35ec35dc52ec0122400b2610 (diff)
ARM: versatile: Add missing ENDPROC to headsmp.S
Once the ENDPROC is in place, BSYM() in not longer necessary to get correct pointer to versatile_secondary_startup(). Tested-by: Jon Medhurst <tixy@linaro.org> Signed-off-by: Pawel Moll <pawel.moll@arm.com> Acked-by: Dave Martin <dave.martin@linaro.org>
-rw-r--r--arch/arm/mach-realview/platsmp.c3
-rw-r--r--arch/arm/mach-vexpress/platsmp.c4
-rw-r--r--arch/arm/plat-versatile/headsmp.S1
3 files changed, 3 insertions, 5 deletions
diff --git a/arch/arm/mach-realview/platsmp.c b/arch/arm/mach-realview/platsmp.c
index e83c654a58d0..17c878ddbc70 100644
--- a/arch/arm/mach-realview/platsmp.c
+++ b/arch/arm/mach-realview/platsmp.c
@@ -17,7 +17,6 @@
17#include <asm/hardware/gic.h> 17#include <asm/hardware/gic.h>
18#include <asm/mach-types.h> 18#include <asm/mach-types.h>
19#include <asm/smp_scu.h> 19#include <asm/smp_scu.h>
20#include <asm/unified.h>
21 20
22#include <mach/board-eb.h> 21#include <mach/board-eb.h>
23#include <mach/board-pb11mp.h> 22#include <mach/board-pb11mp.h>
@@ -75,6 +74,6 @@ void __init platform_smp_prepare_cpus(unsigned int max_cpus)
75 * until it receives a soft interrupt, and then the 74 * until it receives a soft interrupt, and then the
76 * secondary CPU branches to this address. 75 * secondary CPU branches to this address.
77 */ 76 */
78 __raw_writel(BSYM(virt_to_phys(versatile_secondary_startup)), 77 __raw_writel(virt_to_phys(versatile_secondary_startup),
79 __io_address(REALVIEW_SYS_FLAGSSET)); 78 __io_address(REALVIEW_SYS_FLAGSSET));
80} 79}
diff --git a/arch/arm/mach-vexpress/platsmp.c b/arch/arm/mach-vexpress/platsmp.c
index 2b5f7ac001a3..124ffb169093 100644
--- a/arch/arm/mach-vexpress/platsmp.c
+++ b/arch/arm/mach-vexpress/platsmp.c
@@ -13,8 +13,6 @@
13#include <linux/smp.h> 13#include <linux/smp.h>
14#include <linux/io.h> 14#include <linux/io.h>
15 15
16#include <asm/unified.h>
17
18#include <mach/motherboard.h> 16#include <mach/motherboard.h>
19#define V2M_PA_CS7 0x10000000 17#define V2M_PA_CS7 0x10000000
20 18
@@ -46,6 +44,6 @@ void __init platform_smp_prepare_cpus(unsigned int max_cpus)
46 * secondary CPU branches to this address. 44 * secondary CPU branches to this address.
47 */ 45 */
48 writel(~0, MMIO_P2V(V2M_SYS_FLAGSCLR)); 46 writel(~0, MMIO_P2V(V2M_SYS_FLAGSCLR));
49 writel(BSYM(virt_to_phys(versatile_secondary_startup)), 47 writel(virt_to_phys(versatile_secondary_startup),
50 MMIO_P2V(V2M_SYS_FLAGSSET)); 48 MMIO_P2V(V2M_SYS_FLAGSSET));
51} 49}
diff --git a/arch/arm/plat-versatile/headsmp.S b/arch/arm/plat-versatile/headsmp.S
index d397a1fb2f54..dd703ef09b8d 100644
--- a/arch/arm/plat-versatile/headsmp.S
+++ b/arch/arm/plat-versatile/headsmp.S
@@ -38,3 +38,4 @@ pen: ldr r7, [r6]
38 .align 38 .align
391: .long . 391: .long .
40 .long pen_release 40 .long pen_release
41ENDPROC(versatile_secondary_startup)