From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id 8A6F73F328 for ; Tue, 15 Oct 2002 15:33:48 -0400 (EDT) Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id g9FJXm028532 for axp-list@listman.redhat.com; Tue, 15 Oct 2002 15:33:48 -0400 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id g9FJXlf28508 for ; Tue, 15 Oct 2002 15:33:47 -0400 Received: from handhelds.org ([192.58.209.91]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id g9FJDEw22395 for ; Tue, 15 Oct 2002 15:13:15 -0400 Received: (qmail 22850 invoked from network); 15 Oct 2002 19:33:21 -0000 Received: from localhost (HELO shadowfax.middleearth) (127.0.0.1) by localhost with SMTP; 15 Oct 2002 19:33:21 -0000 From: George France To: axp-list@redhat.com, alvin Subject: Re: unaligned traps question Date: Tue, 15 Oct 2002 15:33:20 -0400 X-Mailer: KMail [version 1.1.99] Content-Type: text/plain; charset="us-ascii" References: <01da01c273e4$d5c57320$35de2b09@Viswanadha> <20021015104643.A19134@ellpspace.math.ualberta.ca> <3DAC5D76.3060101@iplink.net> In-Reply-To: <3DAC5D76.3060101@iplink.net> MIME-Version: 1.0 Message-Id: <02101515332004.04054@shadowfax.middleearth> Content-Transfer-Encoding: 8bit X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: On Tuesday 15 October 2002 14:24, alvin wrote: > Michal Jaegermann wrote: > > On Tue, Oct 15, 2002 at 11:39:36AM -0400, George France wrote: > >>Alignment traps are not a serious bug but will make the code run > >> significantly slower. They are mostly really annoying. > > > > Let me add an example when such trap indictates something more serious > > instead of beeing just an instance of a somewhat careless programming. > > Cases like that were observed in "real life" instead of beeing > > artificially constructed. > > [snip] > > This brings to mind a question. > > Are unaligned accesses guarenteed to generate an error or the correct > results. Although the correct results may require some huge amount of > processing on the part of the kernel to repair the problem. On the Alpha Architecture, unaligned accesses are guarenteed to generate an error. The error is trapped by the kernel and fixed by the kernel. The kernel will always make the correct fix for alignment at cost of cpu cycles. Beest Regards, --George