diff options
author | Victor Kamensky <victor.kamensky@linaro.org> | 2013-10-08 00:37:19 -0400 |
---|---|---|
committer | Ben Dooks <ben.dooks@codethink.co.uk> | 2013-10-19 15:46:36 -0400 |
commit | 519ceb9fd10cd7e836d0aa97b2068cc9e97f463b (patch) | |
tree | 72d6b6b5a4737430c208bbb16271e8d82cdbb6a8 | |
parent | 574e2b5111e13827da501771b27d92e6e3f2e3d7 (diff) |
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>
-rw-r--r-- | arch/arm/common/mcpm_head.S | 2 |
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 @@ | |||
15 | 15 | ||
16 | #include <linux/linkage.h> | 16 | #include <linux/linkage.h> |
17 | #include <asm/mcpm.h> | 17 | #include <asm/mcpm.h> |
18 | #include <asm/assembler.h> | ||
18 | 19 | ||
19 | #include "vlock.h" | 20 | #include "vlock.h" |
20 | 21 | ||
@@ -47,6 +48,7 @@ | |||
47 | 48 | ||
48 | ENTRY(mcpm_entry_point) | 49 | ENTRY(mcpm_entry_point) |
49 | 50 | ||
51 | ARM_BE8(setend be) | ||
50 | THUMB( adr r12, BSYM(1f) ) | 52 | THUMB( adr r12, BSYM(1f) ) |
51 | THUMB( bx r12 ) | 53 | THUMB( bx r12 ) |
52 | THUMB( .thumb ) | 54 | THUMB( .thumb ) |