From: Eric Ding <ericding@applix.com>
To: axp-list@redhat.com
Subject: Re: How do I find/fix unaligned accesses?
Date: 07 Dec 1998 22:58:36 -0500 [thread overview]
Message-ID: <yv4lnkjjndf.fsf@tuxedo.applix.com> (raw)
In-Reply-To: Uncle George's message of Mon, 07 Dec 1998 20:07:39 -0500
Hi,
OK, I can believe it needs to be on an 8 byte boundary. Now... next
question: isn't this address on just such a boundary? That is,
0x0000015556b9d360 = 1466038866784
and
1466038866784 % 8 = 0
so why should it still trap? And as for why I'm trying so hard to fix
this, the kernel trapping so slowed things down on our automated testing
that it pretty much slowed the Alpha box down to a crawl. :(
Eric
Uncle George <gatgul@voicenet.com> writes:
> actually its the instruction - is it a quad instruction, then data must be
> aligned on 8 byte boundaries. floating point doubles require alignment at 8
> byte boundaries.
>
> BTW, in general unaligned traps are fixed-up in the kern, although at a price.
> although i'm not too sure about floating point fixups.
>
> Eric Ding wrote:
>
> > Hi guys,
> >
> > thanks for the tips... ok, so now I'm looking at
> >
> > unaligned trap at 0000015556b9d360: 0000000120d9740c 27 1
> >
> > and the variable being accessed is a double, which means it must be aligned
> > on 4 byte boundaries, right? But it's correct, then, isn't it? That is,
> > 0x0000000120d9740c is divisible by 4, so why is there still an error?
--
Senior Software Engineer / ericding@applix.com <><
Applix, Inc. / 112 Turnpike Road / Westboro MA 01581-2842
next prev parent reply other threads:[~1998-12-08 4:05 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-12-04 18:25 How do I find/fix unaligned accesses? Eric Ding
1998-12-04 21:16 ` Oscar Levi
1998-12-04 21:17 ` nbecker
1998-12-04 21:18 ` Harvey J. Stein
1998-12-04 21:35 ` Rich Payne
1998-12-05 2:29 ` Tom Linden
1998-12-05 16:37 ` Oscar Levi
1998-12-07 23:45 ` Eric Ding
1998-12-08 0:44 ` Richard Hadsell
1998-12-08 1:07 ` Uncle George
1998-12-08 3:58 ` Eric Ding [this message]
1998-12-08 7:16 ` Wes Bauske
1998-12-08 11:14 ` Uncle George
1998-12-08 13:04 ` nbecker
-- strict thread matches above, loose matches on Subject: below --
1998-12-08 21:13 Christian Groessler
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox