[PATCH] MTD: Fix Orion NAND driver compilation with ARM OABI

Nicolas Pitre nico at fluxnic.net
Sat Mar 20 11:37:24 EDT 2010


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



More information about the linux-arm-kernel mailing list