diff options
author | Ben Dooks <ben.dooks@codethink.co.uk> | 2013-02-12 19:59:57 +0100 |
---|---|---|
committer | Ben Dooks <ben.dooks@codethink.co.uk> | 2013-10-19 21:46:33 +0200 |
commit | 457c2403c513c74f60d5757fd11ae927e5554a38 (patch) | |
tree | d1625037ea6aee42fc8559ffb0c7b97619950cf4 /arch/arm/kernel/entry-common.S | |
parent | ARM: fix ARCH_IXP4xx usage of ARCH_SUPPORTS_BIG_ENDIAN (diff) | |
download | linux-457c2403c513c74f60d5757fd11ae927e5554a38.tar.xz linux-457c2403c513c74f60d5757fd11ae927e5554a38.zip |
ARM: asm: Add ARM_BE8() assembly helper
Add ARM_BE8() helper to wrap any code conditional on being
compile when CONFIG_ARM_ENDIAN_BE8 is selected and convert
existing places where this is to use it.
Acked-by: Nicolas Pitre <nico@linaro.org>
Reviewed-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Diffstat (limited to 'arch/arm/kernel/entry-common.S')
-rw-r--r-- | arch/arm/kernel/entry-common.S | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm/kernel/entry-common.S b/arch/arm/kernel/entry-common.S index bc6bd9683ba4..a2dcafdf1bc8 100644 --- a/arch/arm/kernel/entry-common.S +++ b/arch/arm/kernel/entry-common.S @@ -393,9 +393,7 @@ ENTRY(vector_swi) #else USER( ldr r10, [lr, #-4] ) @ get SWI instruction #endif -#ifdef CONFIG_CPU_ENDIAN_BE8 - rev r10, r10 @ little endian instruction -#endif + ARM_BE8(rev r10, r10) @ little endian instruction #elif defined(CONFIG_AEABI) |