Messages in this thread | | | From | Arnd Bergmann <> | Subject | Re: Do cpu-endian MMIO accessors exist? | Date | Tue, 21 Jul 2009 23:15:49 +0200 |
| |
On Tuesday 21 July 2009, Jiri Slaby wrote: > > Do cpu-endian MMIO accessors exist? What should I use, or do I just > > have to use #ifdef __BIG_ENDIAN? > > There is __raw_readl which doesn't switch bytes.
__raw_readl is not a replacement for real accessors like ioread32 or in_be32, because it does not synchronize with the instruction stream.
The best solution would be if you could find a way to set the hardware into little-endian mode on all architectures. From the description, it sounds like the hardware should allow that.
Arnd <><
| |