From: Paul Mackerras <paulus@samba.org>
To: Michael Ellerman <michael@ellerman.id.au>
Cc: linuxppc-dev@ozlabs.org, Arnd Bergmann <arnd.bergmann@de.ibm.com>
Subject: Re: [PATCH] Assume we're on cpu 0 in early boot
Date: Wed, 28 Jun 2006 11:42:01 +1000 [thread overview]
Message-ID: <17569.56937.308576.848377@cargo.ozlabs.ibm.com> (raw)
In-Reply-To: <20060627040036.469B767B28@ozlabs.org>
Michael Ellerman writes:
> There's a small period early in boot where we don't know which cpu we're
> running on. That's ok, except that it means we have no paca, or more
> correctly that our paca pointer points somewhere random.
>
> So that we can safely call things like smp_processor_id(), we need a paca,
> so just assume we're on cpu 0. No code should _write_ to the paca before
> we've set the correct one up.
OK, but why not just do a setup_paca(0) at the start of early_setup(),
in C code? You can also remove the redundant paca setting in
start_here_common() in head_64.S.
Paul.
next prev parent reply other threads:[~2006-06-28 1:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-23 8:20 [PATCH 2/8] Assume we're on cpu 0 in early boot Michael Ellerman
2006-06-23 10:03 ` Jimi Xenidis
2006-06-27 4:00 ` [PATCH] " Michael Ellerman
2006-06-28 1:42 ` Paul Mackerras [this message]
2006-06-28 2:11 ` Michael Ellerman
2006-06-28 3:18 ` Michael Ellerman
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=17569.56937.308576.848377@cargo.ozlabs.ibm.com \
--to=paulus@samba.org \
--cc=arnd.bergmann@de.ibm.com \
--cc=linuxppc-dev@ozlabs.org \
--cc=michael@ellerman.id.au \
/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).