From: Dan Pop <Dan.Pop@cern.ch>
To: linux-ia64@vger.kernel.org
Subject: RE: [Linux-ia64] unaligned access?
Date: Wed, 28 Nov 2001 19:18:18 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105590698805558@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590698805553@msgid-missing>
On Wed, 28 Nov 2001, Pereira, D LailaX E wrote:
>
> scp->sc_ip is not properly aligned for an unsigned long access, i.e.
> it is not a multiple of 8.
>
> Dan
> But ,
> sc_ip field is defined as "unsigned long" in
> struct sigcontext {
> ...
> unsigned long sc_ip;
> ...
> }
>
> ??
The problem is not how it is defined, but what value it contains. In
your case, its value was not a multiple of 8, hence your problem.
Other people have already explained how to properly use its value to
get the relevant bundle address (clear the least significant 4 bits).
Do the proper masking in your macro and you should get the expected
results.
Dan
prev parent reply other threads:[~2001-11-28 19:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-28 17:37 [Linux-ia64] unaligned access? Pereira, D LailaX E
2001-11-28 17:47 ` Dan Pop
2001-11-28 17:56 ` Pereira, D LailaX E
2001-11-28 17:57 ` n0ano
2001-11-28 18:25 ` David Mosberger
2001-11-28 19:18 ` Dan Pop [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=marc-linux-ia64-105590698805558@msgid-missing \
--to=dan.pop@cern.ch \
--cc=linux-ia64@vger.kernel.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