powerpc/boot: Define byteswapping routines for little endian
authorCédric Le Goater <clg@fr.ibm.com>
Thu, 24 Apr 2014 07:23:33 +0000 (09:23 +0200)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 28 Apr 2014 07:35:56 +0000 (17:35 +1000)
commit98fd433aa6b02ba1612f9a9b73b8eb2f7e9d3419
tree0d6771a0ddc11bd0ce1d22eab04566896185fdc9
parentb636031a7b0622ffdc5689ff36fb13669f00e160
powerpc/boot: Define byteswapping routines for little endian

These are not the most efficient versions of swab but the wrapper does
not do much byte swapping. On a big endian cpu, these routines are
a no-op.

Signed-off-by: Cédric Le Goater <clg@fr.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/boot/of.h
arch/powerpc/boot/swab.h [new file with mode: 0644]