From: David Mosberger <davidm@hpl.hp.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [Linux-ia64] unaligned access?
Date: Wed, 28 Nov 2001 18:25:58 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105590698805557@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590698805553@msgid-missing>
>>>>> On Wed, 28 Nov 2001 09:37:51 -0800, "Pereira, D LailaX E" <d.lailax.e.pereira@intel.com> said:
>> HI While running the following code, define
>> WRITE_CAUSED_SIGBUS_or_SEGV \ (((*(unsigned
>> long*)scp->sc_ip)>>21)&1) .... if (WRITE_CAUSED_SIGBUS_or_SEGV){
>> ........ } else { ......... }
>> I get the following error on the "if " statement:
>> stress.udp(31438): unaligned access to
>> 0x4000000000003541,ip=0x4000000000015fc1 Please let me know what
>> is wrong with the macro: define WRITE_CAUSED_SIGBUS_or_SEGV \
>> (((*(unsigned long*)scp->sc_ip)>>21)&1)
The least significant two bits of sc_ip encode the slot number. You
need to take those bits into account when reading an instruction from
a bundle.
--david
next prev parent reply other threads:[~2001-11-28 18:25 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 [this message]
2001-11-28 19:18 ` Dan Pop
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-105590698805557@msgid-missing \
--to=davidm@hpl.hp.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.