summaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorAnton Blanchard2014-03-06 06:10:11 +0100
committerBenjamin Herrenschmidt2014-03-24 00:16:04 +0100
commit422b9b9684db3c511e65c91842275c43f5910ae9 (patch)
tree2597bb6df11cf14dee9161cd2751a888213d0917 /arch/powerpc
parentpowerpc/le: Big endian arguments for ppc_rtas() (diff)
downloadkernel-qcow2-linux-422b9b9684db3c511e65c91842275c43f5910ae9.tar.gz
kernel-qcow2-linux-422b9b9684db3c511e65c91842275c43f5910ae9.tar.xz
kernel-qcow2-linux-422b9b9684db3c511e65c91842275c43f5910ae9.zip
powerpc/compat: 32-bit little endian machine name is ppcle, not ppc
I noticed this when testing setarch. No, we don't magically support a big endian userspace on a little endian kernel. Signed-off-by: Anton Blanchard <anton@samba.org> Cc: stable@vger.kernel.org # v3.10+ Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/include/asm/compat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/compat.h b/arch/powerpc/include/asm/compat.h
index a613d2c82fd9..b142b8e0ed9e 100644
--- a/arch/powerpc/include/asm/compat.h
+++ b/arch/powerpc/include/asm/compat.h
@@ -8,7 +8,11 @@
#include <linux/sched.h>
#define COMPAT_USER_HZ 100
+#ifdef __BIG_ENDIAN__
#define COMPAT_UTS_MACHINE "ppc\0\0"
+#else
+#define COMPAT_UTS_MACHINE "ppcle\0\0"
+#endif
typedef u32 compat_size_t;
typedef s32 compat_ssize_t;