]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit64e5b4881117f8263b704e30358c09809e57f039
tree0d6771a0ddc11bd0ce1d22eab04566896185fdc9
parentb2079a97c021ec9b2c65d2346770e45624934a55
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]