diff options
author | Greg Kurz <gkurz@linux.vnet.ibm.com> | 2014-03-19 17:02:51 +0100 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-03-24 09:48:36 +1100 |
commit | 599d2870425dcde3bf2a7d969d5977baa57feb8b (patch) | |
tree | 4afbecdcb10bbc2becd8bf61912dbedeb8b371f3 /arch/powerpc/include/asm | |
parent | e45fbae51553a57cb591abf24398ed79ecbf8923 (diff) | |
download | linux-599d2870425dcde3bf2a7d969d5977baa57feb8b.tar.bz2 |
powerpc/le: Big endian arguments for ppc_rtas()
The ppc_rtas() syscall allows userspace to interact directly with RTAS.
For the moment, it assumes every thing is big endian and returns either
EINVAL or EFAULT when called in a little endian environment.
As suggested by Benjamin, to avoid bugs when userspace wants to pass
a non 32 bit value to RTAS, it is far better to stick with a simple
rationale: ppc_rtas() should be called with a big endian rtas_args
structure.
With this patch, it is now up to userspace to forge big endian arguments,
as expected by RTAS.
Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm')
0 files changed, 0 insertions, 0 deletions