From: Segher Boessenkool <segher@kernel.crashing.org>
To: linuxppc-dev list <linuxppc-dev@ozlabs.org>
Subject: Re: [PATCH] powerpc: Don't play type punning games with lock_token
Date: Wed, 23 Apr 2008 20:27:02 +0200 [thread overview]
Message-ID: <13e9f2da3e71dd8fb3849649c44f542a@kernel.crashing.org> (raw)
In-Reply-To: <2fcdb6beb2e205a397a1928c2c2c4b1e3360b09e.1208962154.git.segher@kernel.crashing.org>
> The two u16 fields lock_token and paca_index in struct paca_struct are
> accessed as one u32 field via type punning. Change this into one u32
> field paca_id, and add a paca_get_index() function to access only the
> low 16 bits of this.
>
> Signed-off-by: Segher Boessenkool <segher@kernel.crashing.org>
> ---
> arch/powerpc/kernel/asm-offsets.c | 2 +-
> arch/powerpc/kernel/paca.c | 3 +--
> arch/powerpc/platforms/iseries/exception.S | 2 +-
> include/asm-powerpc/iseries/hv_call.h | 2 +-
> include/asm-powerpc/paca.h | 18 ++++++++++++------
> include/asm-powerpc/smp.h | 2 +-
> include/asm-powerpc/spinlock.h | 2 +-
> 7 files changed, 18 insertions(+), 13 deletions(-)
It doesn't apply cleanly anymore, will redo once the dust settles
a bit.
Segher
prev parent reply other threads:[~2008-04-23 18:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-23 15:13 [PATCH] powerpc: Don't play type punning games with lock_token Segher Boessenkool
2008-04-23 18:27 ` Segher Boessenkool [this message]
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=13e9f2da3e71dd8fb3849649c44f542a@kernel.crashing.org \
--to=segher@kernel.crashing.org \
--cc=linuxppc-dev@ozlabs.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).