From: Adam Lackorzynski <adam@os.inf.tu-dresden.de>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 1/3] target-arm: Setup smpboot code in all setups
Date: Tue, 15 Feb 2011 14:12:45 +0100 [thread overview]
Message-ID: <20110215131245.GE19666@os.inf.tu-dresden.de> (raw)
In-Reply-To: <AANLkTik570wef0SHL3RfhEb-6O8m1T6io_NcRZEvOBuA@mail.gmail.com>
On Tue Feb 15, 2011 at 13:01:08 +0000, Peter Maydell wrote:
> On 15 February 2011 10:48, Adam Lackorzynski <adam@os.inf.tu-dresden.de> wrote:
> > Make smpboot available not only for Linux but for all setups.
>
> I'm not convinced about this. I think if you're providing a raw
> image for an SMP system (rather than a Linux kernel) then it's
> your job to provide an image which handles the bootup of the
> secondary CPUs, the same way it would be if you were providing
> a ROM image for real hardware.
Ok, this is one possibility. Another one would be something like this:
Subject: [PATCH] target-arm: Provide entry vector for non-linux systems
Non-Linux systems must provide their own code for secondary CPU boot-up.
We use the same entry point as on the first CPU.
Signed-off-by: Adam Lackorzynski <adam@os.inf.tu-dresden.de>
---
hw/realview.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/hw/realview.c b/hw/realview.c
index 6eb6c6a..574bc11 100644
--- a/hw/realview.c
+++ b/hw/realview.c
@@ -112,7 +112,11 @@ static void secondary_cpu_reset(void *opaque)
/* Set entry point for secondary CPUs. This assumes we're using
the init code from arm_boot.c. Real hardware resets all CPUs
the same. */
- env->regs[15] = SMP_BOOT_ADDR;
+ if (realview_binfo.is_linux) {
+ env->regs[15] = SMP_BOOT_ADDR;
+ } else {
+ env->regs[15] = realview_binfo.entry;
+ }
}
/* The following two lists must be consistent. */
--
1.7.2.3
Adam
--
Adam adam@os.inf.tu-dresden.de
Lackorzynski http://os.inf.tu-dresden.de/~adam/
next prev parent reply other threads:[~2011-02-15 13:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-15 10:48 [Qemu-devel] [PATCH 1/3] target-arm: Setup smpboot code in all setups Adam Lackorzynski
2011-02-15 13:01 ` Peter Maydell
2011-02-15 13:12 ` Adam Lackorzynski [this message]
2011-02-15 13:37 ` Peter Maydell
2011-02-15 14:30 ` Adam Lackorzynski
2011-02-15 15:02 ` Vincent Palatin
2011-02-15 17:25 ` Adam Lackorzynski
2011-02-15 17:46 ` Peter Maydell
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=20110215131245.GE19666@os.inf.tu-dresden.de \
--to=adam@os.inf.tu-dresden.de \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.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;
as well as URLs for NNTP newsgroup(s).