summaryrefslogtreecommitdiffstats
path: root/arch/arm/common
diff options
context:
space:
mode:
authorVictor Kamensky <victor.kamensky@linaro.org>2013-10-08 06:37:19 +0200
committerBen Dooks <ben.dooks@codethink.co.uk>2013-10-19 21:46:36 +0200
commit519ceb9fd10cd7e836d0aa97b2068cc9e97f463b (patch)
tree72d6b6b5a4737430c208bbb16271e8d82cdbb6a8 /arch/arm/common
parentARM: signal: sigreturn_codes should be endian neutral to work in BE8 (diff)
downloadlinux-519ceb9fd10cd7e836d0aa97b2068cc9e97f463b.tar.xz
linux-519ceb9fd10cd7e836d0aa97b2068cc9e97f463b.zip
ARM: mcpm: fix big endian issue in mcpm startup code
In big endian mode mcpm_entry_point is first function that called on secondaries CPU. First it should switch CPU into big endian code. [ben.dooks@codethink.co.uk: merge fix patch from Victor into this] Signed-off-by: Victor Kamensky <victor.kamensky@linaro.org> Acked-by: Nicolas Pitre <nico@linaro.org> Reviewed-by: Dave Martin <Dave.Martin@arm.com> Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Diffstat (limited to 'arch/arm/common')
-rw-r--r--arch/arm/common/mcpm_head.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/common/mcpm_head.S b/arch/arm/common/mcpm_head.S
index 39c96df3477a..4f88f5e655be 100644
--- a/arch/arm/common/mcpm_head.S
+++ b/arch/arm/common/mcpm_head.S
@@ -15,6 +15,7 @@
#include <linux/linkage.h>
#include <asm/mcpm.h>
+#include <asm/assembler.h>
#include "vlock.h"
@@ -47,6 +48,7 @@
ENTRY(mcpm_entry_point)
+ ARM_BE8(setend be)
THUMB( adr r12, BSYM(1f) )
THUMB( bx r12 )
THUMB( .thumb )