]> 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)
commit8068034533bfc3e4ff151b04419bb775690ceca1
tree0d6771a0ddc11bd0ce1d22eab04566896185fdc9
parent6b32a462e9f35e1f3ce9fbd6d94d30c531c07f1a
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]