From: Greg Kurz Date: Wed, 19 Mar 2014 16:02:51 +0000 (+0100) Subject: powerpc/le: Big endian arguments for ppc_rtas() X-Git-Tag: v3.15-rc1~124^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=599d2870425dcde3bf2a7d969d5977baa57feb8b;p=pandora-kernel.git 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 Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed