summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/headsmp.S
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2013-06-10 11:19:36 +0200
committerSimon Horman <horms+renesas@verge.net.au>2013-06-17 09:07:27 +0200
commitebe72ab90a5c1e3b69d89b841552fd02805dc4e4 (patch)
tree17db27537387608267ff14466afbbfd63e4f6222 /arch/arm/mach-shmobile/headsmp.S
parentARM: shmobile: Rework sh7372 sleep code to use virt_to_phys() (diff)
downloadlinux-ebe72ab90a5c1e3b69d89b841552fd02805dc4e4.tar.xz
linux-ebe72ab90a5c1e3b69d89b841552fd02805dc4e4.zip
ARM: shmobile: Add SMP boot function and argument
Add code for mach-shmobile to allow specifying boot function and argument. Will initially be used for SMP together with SCU but may in the future also be used for deep sleep resume. This patch removes one inline virtual to physical address conversion. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/arm/mach-shmobile/headsmp.S')
-rw-r--r--arch/arm/mach-shmobile/headsmp.S13
1 files changed, 10 insertions, 3 deletions
diff --git a/arch/arm/mach-shmobile/headsmp.S b/arch/arm/mach-shmobile/headsmp.S
index 96001fd49b6c..559d1ce5f57e 100644
--- a/arch/arm/mach-shmobile/headsmp.S
+++ b/arch/arm/mach-shmobile/headsmp.S
@@ -27,7 +27,14 @@ ENDPROC(shmobile_invalidate_start)
* We need _long_ jump to the physical address.
*/
.align 12
-ENTRY(shmobile_secondary_vector)
+ENTRY(shmobile_boot_vector)
+ ldr r0, 2f
ldr pc, 1f
-1: .long shmobile_invalidate_start - PAGE_OFFSET + PLAT_PHYS_OFFSET
-ENDPROC(shmobile_secondary_vector)
+ENDPROC(shmobile_boot_vector)
+
+ .globl shmobile_boot_fn
+shmobile_boot_fn:
+1: .space 4
+ .globl shmobile_boot_arg
+shmobile_boot_arg:
+2: .space 4