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 3CDE73EEA7 for ; Wed, 16 Oct 2002 16:08:37 -0400 (EDT) Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id g9GK8bl16433 for axp-list@listman.redhat.com; Wed, 16 Oct 2002 16:08:37 -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 g9GK8af16424 for ; Wed, 16 Oct 2002 16:08:36 -0400 Received: from handhelds.org ([192.58.209.91]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id g9GJlsw28453 for ; Wed, 16 Oct 2002 15:47:54 -0400 Received: (qmail 29535 invoked from network); 16 Oct 2002 20:08:08 -0000 Received: from localhost (HELO shadowfax.middleearth) (127.0.0.1) by localhost with SMTP; 16 Oct 2002 20:08:08 -0000 From: George France To: axp-list@redhat.com, Falk Hueffner Subject: Re: unaligned traps question Date: Wed, 16 Oct 2002 16:08:08 -0400 X-Mailer: KMail [version 1.1.99] Content-Type: text/plain; charset="us-ascii" References: <01da01c273e4$d5c57320$35de2b09@Viswanadha> <02101615182900.18457@shadowfax.middleearth> <87d6qanp62.fsf@student.uni-tuebingen.de> In-Reply-To: <87d6qanp62.fsf@student.uni-tuebingen.de> MIME-Version: 1.0 Message-Id: <02101616080803.18457@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 Wednesday 16 October 2002 15:45, Falk Hueffner wrote: > George France writes: > > Your converted code makes sense. A prettier method is used by the > > kernel in asm/unaligned.h via: > > > > get_unaligned(ptr); > > put_unaligned(val, ptr); > > Note that the code gcc generates for these is pretty inefficient, > though, so the memcpy method is probably faster. (Incidentally, I have > a patch lying around that makes better code on Alphas with the BWX > extension, but I never got around to finishing it... does anybody > think it is worthwhile?) Yup, pretty may not equal fast. :-) Maybe Alvin would like to test this and let us know? Lots of people could take advantage of the BWX extension. For people with those systems it is probably worthwhile. Best Regards, --George.