From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 12973 invoked from network); 8 Dec 1998 04:05:47 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 8 Dec 1998 04:05:47 -0000 Received: from relay7.UU.NET (relay7.UU.NET [192.48.96.17]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id XAA22476 for ; Mon, 7 Dec 1998 23:00:12 -0500 Received: from uucp1.uu.net by relay7.UU.NET with SMTP (peer crosschecked as: uucp1.uu.net [192.48.96.81]) id QQfsuy20941; Mon, 7 Dec 1998 23:00:11 -0500 (EST) Received: from applix.UUCP by uucp1.uu.net with UUCP/RMAIL ; Mon, 7 Dec 1998 23:00:11 -0500 Received: from tuxedo.applix.com by applix.com (SMI-8.6/SMI-SVR4) id XAA10488; Mon, 7 Dec 1998 23:00:41 -0500 Received: (from ericding@localhost) by tuxedo.applix.com (8.8.7/8.8.7) id WAA24265; Mon, 7 Dec 1998 22:58:36 -0500 To: axp-list@redhat.com Subject: Re: How do I find/fix unaligned accesses? References: <366C7BDA.3C48407C@voicenet.com> From: Eric Ding Date: 07 Dec 1998 22:58:36 -0500 In-Reply-To: Uncle George's message of Mon, 07 Dec 1998 20:07:39 -0500 Message-ID: X-Mailer: Gnus v5.5/Emacs 20.2 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 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