diff options
author | Anton Blanchard <anton@samba.org> | 2013-08-07 02:01:31 +1000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-08-14 15:33:22 +1000 |
commit | 271282649132f0a84ac8e2f3655cf2b5c192036b (patch) | |
tree | 90e7c0b29b4cf8fff4bede66ddeb6db4a2d9c4b1 /arch/powerpc/include | |
parent | 7946d5a513e510269d6e0126597f8667c886d0d7 (diff) | |
download | blackbird-op-linux-271282649132f0a84ac8e2f3655cf2b5c192036b.tar.gz blackbird-op-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')
-rw-r--r-- | arch/powerpc/include/asm/rtas.h | 8 |
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[]. */ }; |