diff options
author | Dave Martin <dave.martin@linaro.org> | 2011-01-14 00:43:01 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-01-14 09:00:30 +0000 |
commit | 874d5d3ccc04c0659b76b05ee0c761f568062cb1 (patch) | |
tree | e462017a1163df87b75b68fdc1d40f2dcde56537 /arch/arm/mm/proc-v7.S | |
parent | 0adfca6ff2131c7c67dffe094611097bbc9f5005 (diff) | |
download | kernel_samsung_smdk4412-874d5d3ccc04c0659b76b05ee0c761f568062cb1.zip kernel_samsung_smdk4412-874d5d3ccc04c0659b76b05ee0c761f568062cb1.tar.gz kernel_samsung_smdk4412-874d5d3ccc04c0659b76b05ee0c761f568062cb1.tar.bz2 |
ARM: 6623/1: Thumb-2: Fix out-of-range offset for Thumb-2 in proc-v7.S
Commit d30e45e (ARM: pgtable: switch order of Linux vs hardware page tables)
introduced a pre-increment addressing offset which is out of range for
Thumb-2. Thumb-2 only permits offsets <256. So split the intruction in
two for Thumb-2.
Signed-off-by: Dave Martin <dave.martin@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mm/proc-v7.S')
-rw-r--r-- | arch/arm/mm/proc-v7.S | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mm/proc-v7.S b/arch/arm/mm/proc-v7.S index b49fab2..0c1172b 100644 --- a/arch/arm/mm/proc-v7.S +++ b/arch/arm/mm/proc-v7.S @@ -159,7 +159,9 @@ ENTRY(cpu_v7_set_pte_ext) tstne r1, #L_PTE_PRESENT moveq r3, #0 - str r3, [r0, #2048]! + ARM( str r3, [r0, #2048]! ) + THUMB( add r0, r0, #2048 ) + THUMB( str r3, [r0] ) mcr p15, 0, r0, c7, c10, 1 @ flush_pte #endif mov pc, lr |