summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/rtas.h
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2013-08-06 18:01:31 +0200
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-08-14 07:33:22 +0200
commit271282649132f0a84ac8e2f3655cf2b5c192036b (patch)
tree90e7c0b29b4cf8fff4bede66ddeb6db4a2d9c4b1 /arch/powerpc/include/asm/rtas.h
parentpowerpc: Make cache info device tree accesses endian safe (diff)
downloadlinux-271282649132f0a84ac8e2f3655cf2b5c192036b.tar.xz
linux-271282649132f0a84ac8e2f3655cf2b5c192036b.zip
powerpc: Make RTAS calls endian safe
RTAS expects arguments in the call buffer to be big endian so we need to byteswap on little endian builds Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm/rtas.h')
-rw-r--r--arch/powerpc/include/asm/rtas.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/powerpc/include/asm/rtas.h b/arch/powerpc/include/asm/rtas.h
index c7a8bfc9f6f5..9bd52c65e66f 100644
--- a/arch/powerpc/include/asm/rtas.h
+++ b/arch/powerpc/include/asm/rtas.h
@@ -44,12 +44,12 @@
*
*/
-typedef u32 rtas_arg_t;
+typedef __be32 rtas_arg_t;
struct rtas_args {
- u32 token;
- u32 nargs;
- u32 nret;
+ __be32 token;
+ __be32 nargs;
+ __be32 nret;
rtas_arg_t args[16];
rtas_arg_t *rets; /* Pointer to return values in args[]. */
};