From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753128Ab0CTPh1 (ORCPT ); Sat, 20 Mar 2010 11:37:27 -0400 Received: from relais.videotron.ca ([24.201.245.36]:33159 "EHLO relais.videotron.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752495Ab0CTPhZ (ORCPT ); Sat, 20 Mar 2010 11:37:25 -0400 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: TEXT/PLAIN; charset=US-ASCII Date: Sat, 20 Mar 2010 11:37:24 -0400 (EDT) From: Nicolas Pitre X-X-Sender: nico@xanadu.home To: Mikael Pettersson Cc: David Woodhouse , Paulius Zaleckas , rth@twiddle.net, lkml , linux-mtd@lists.infradead.org, u.kleine-koenig@pengutronix.de, simon.kagstrom@netinsight.net, Andrew Morton , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] MTD: Fix Orion NAND driver compilation with ARM OABI In-reply-to: <19364.58488.817538.692599@pilspetsen.it.uu.se> Message-id: References: <20100320085507.4038.96426.stgit@pauliusz> <1269078083.4028.5586.camel@macbook.infradead.org> <1269086286.4028.6039.camel@macbook.infradead.org> <19364.58488.817538.692599@pilspetsen.it.uu.se> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 20 Mar 2010, Mikael Pettersson wrote: > I missed the start of this thread, but looking at orion_nand.c I fail to > see why you'd need to mess with inline asm for reading a sequence of u64 > values from an I/O location to an array. The reason for doing so with inline asm in the first place was not discussed in this thread. > Rewriting that to proper C generates a nice ldrd;strd loop with my gcc-4.4.3. Sure, GCC version 4.4.3 does the right thing. Not all of them do. Nicolas