public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* FRV/ARM unaligned access question
@ 2008-10-08  7:26 Harvey Harrison
  2008-10-08  7:35 ` Russell King
  2008-10-08 11:16 ` David Howells
  0 siblings, 2 replies; 8+ messages in thread
From: Harvey Harrison @ 2008-10-08  7:26 UTC (permalink / raw)
  To: Russell King, David Howells; +Cc: Andrew Morton, LKML

David, Russell,

I noticed that frv/arm are the only two arches that currently use open-coded
byteshifting routines for both the cpu endianness and the other endianness
whereas just about all the other arches use a packed-struct version for the
cpu-endian and then the byteshifting versions (lifted from arm) for the other
endianness.

For frv, this was due to the consolidation of unaligned access helpers which
removed the assembly version.  For ARM, I think it was done this way as the
kernel could be compiled for either endianness and so it was just easiest to
always have the byteshifting versions around.  

>From the comments in the ARM version, time was spent to make sure the byteshifting
helpers used a small amount or registers.  Was there a known problem with the
packed-struct implementation on ARM that made you choose to use byte-shifting
or was it just done this way to more easily support compiling for different
endianness?

If there isn't an issue I'm missing, could ARM/FRV move over to the packed-struct
version?

Cheers,

Harvey





^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-10-09 11:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-08  7:26 FRV/ARM unaligned access question Harvey Harrison
2008-10-08  7:35 ` Russell King
2008-10-08  7:36   ` Harvey Harrison
2008-10-08  9:10     ` Russell King
2008-10-08  9:34       ` Harvey Harrison
2008-10-08 11:16 ` David Howells
2008-10-08 20:22   ` Harvey Harrison
2008-10-09 11:35     ` David Howells

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox