From owner-freebsd-alpha Thu Feb 15 16:13:59 2001 Delivered-To: freebsd-alpha@freebsd.org Received: from smtp03.primenet.com (smtp03.primenet.com [206.165.6.133]) by hub.freebsd.org (Postfix) with ESMTP id B8EEA37B491 for ; Thu, 15 Feb 2001 16:13:57 -0800 (PST) Received: (from daemon@localhost) by smtp03.primenet.com (8.9.3/8.9.3) id RAA25278; Thu, 15 Feb 2001 17:10:55 -0700 (MST) Received: from usr08.primenet.com(206.165.6.208) via SMTP by smtp03.primenet.com, id smtpdAAA3.aGmX; Thu Feb 15 17:10:44 2001 Received: (from tlambert@localhost) by usr08.primenet.com (8.8.5/8.8.5) id RAA10748; Thu, 15 Feb 2001 17:13:39 -0700 (MST) From: Terry Lambert Message-Id: <200102160013.RAA10748@usr08.primenet.com> Subject: Re: unaligned access To: Peter.Blok@inter.NL.net Date: Fri, 16 Feb 2001 00:13:39 +0000 (GMT) Cc: tlambert@primenet.com ('Terry Lambert'), gallatin@cs.duke.edu ('Andrew Gallatin'), freebsd-alpha@FreeBSD.ORG In-Reply-To: <000001c09746$af96e2a0$8a02a8c0@ntpc> from "Peter Blok" at Feb 15, 2001 12:59:00 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Thanks for the hints. One big cause was the embedded alloc routines, that > doesn't do aligning. The next buffer allocated was unaligned, because the > previous size was unaligned. I haven't looked closely enough to the > structures. I also had one unaligned access in a varargs construction. > Haven't found the cause yet. Andrew is the "big guns" when it comes to Alpha work; I'm just someone on the sidelines. But remember that your problem is not the fixups themselves, but that the code does not operate in the presence of fixups, which it should. This implies the operational problem has nothing to do with the fixups, and is instead related to some other problem. My money is still on structure packing in the user space code; if you ensure that it isn't a problem by using "#pragma pack(1)", then I suspect your code will work, even though the console will still whine about unaligned access errors. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message