From: magnus.damm@gmail.com (Magnus Damm)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 01/06] ARM: shmobile: Add SMP boot function and argument
Date: Mon, 10 Jun 2013 18:19:36 +0900 [thread overview]
Message-ID: <20130610091936.18944.66463.sendpatchset@w520> (raw)
In-Reply-To: <20130610091925.18944.68117.sendpatchset@w520>
From: Magnus Damm <damm@opensource.se>
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>
---
arch/arm/mach-shmobile/headsmp.S | 13 ++++++++++---
arch/arm/mach-shmobile/include/mach/common.h | 4 +++-
2 files changed, 13 insertions(+), 4 deletions(-)
--- 0001/arch/arm/mach-shmobile/headsmp.S
+++ work/arch/arm/mach-shmobile/headsmp.S 2013-06-05 13:21:14.000000000 +0900
@@ -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
--- 0016/arch/arm/mach-shmobile/include/mach/common.h
+++ work/arch/arm/mach-shmobile/include/mach/common.h 2013-06-05 13:19:52.000000000 +0900
@@ -7,7 +7,9 @@ extern void shmobile_setup_delay(unsigne
unsigned int mult, unsigned int div);
struct twd_local_timer;
extern void shmobile_setup_console(void);
-extern void shmobile_secondary_vector(void);
+extern void shmobile_boot_vector(void);
+extern unsigned long shmobile_boot_fn;
+extern unsigned long shmobile_boot_arg;
extern void shmobile_secondary_vector_scu(void);
struct clk;
extern int shmobile_clk_init(void);
next prev parent reply other threads:[~2013-06-10 9:19 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-10 9:19 [PATCH 00/06] ARM: shmobile: SMP virt_to_phys() conversion Magnus Damm
2013-06-10 9:19 ` Magnus Damm [this message]
2013-06-12 14:09 ` [PATCH 01/06] ARM: shmobile: Add SMP boot function and argument Simon Horman
2013-06-10 9:19 ` [PATCH 02/06] ARM: shmobile: Add SCU boot function using argument Magnus Damm
2013-06-12 14:09 ` Simon Horman
2013-06-10 9:19 ` [PATCH 03/06] ARM: shmobile: r8a7779 SMP with SCU boot fn and args Magnus Damm
2013-06-12 14:09 ` Simon Horman
2013-06-10 9:20 ` [PATCH 04/06] ARM: shmobile: sh73a0 " Magnus Damm
2013-06-12 14:09 ` Simon Horman
2013-06-10 9:20 ` [PATCH 05/06] ARM: shmobile: EMEV2 " Magnus Damm
2013-06-12 14:09 ` Simon Horman
2013-06-10 9:20 ` [PATCH 06/06] ARM: shmobile: Remove old SCU boot code Magnus Damm
2013-06-12 14:10 ` Simon Horman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130610091936.18944.66463.sendpatchset@w520 \
--to=magnus.damm@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox