ARM: shmobile: Introduce shmobile_boot_size
authorMagnus Damm <damm@opensource.se>
Wed, 7 Aug 2013 22:14:07 +0000 (07:14 +0900)
committerSimon Horman <horms+renesas@verge.net.au>
Sat, 21 Sep 2013 00:47:31 +0000 (17:47 -0700)
Introduce shmobile_boot_size that can be used by
future SMP code to determine the size of the boot
code that needs to be copied to internal SRAM.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/headsmp.S
arch/arm/mach-shmobile/include/mach/common.h

index f93751caf5cbf5f4d34e2099d494249b0eac02e8..e5be5c88644b70aa8bb6196807bff7f000085658 100644 (file)
@@ -40,6 +40,9 @@ shmobile_boot_fn:
        .globl  shmobile_boot_arg
 shmobile_boot_arg:
 2:     .space  4
+       .globl  shmobile_boot_size
+shmobile_boot_size:
+       .long   . - shmobile_boot_vector
 
 /*
  * Per-CPU SMP boot function/argument selection code based on MPIDR
index a9df8f3bfda784c016b903191d6a5922aff01046..cfe397716fd1d2a8d2eec628d4ea5f46f308b546 100644 (file)
@@ -9,6 +9,7 @@ extern void shmobile_setup_console(void);
 extern void shmobile_boot_vector(void);
 extern unsigned long shmobile_boot_fn;
 extern unsigned long shmobile_boot_arg;
+extern unsigned long shmobile_boot_size;
 extern void shmobile_smp_boot(void);
 extern void shmobile_smp_sleep(void);
 extern void shmobile_smp_hook(unsigned int cpu, unsigned long fn,