aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mm
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2011-06-27 12:23:11 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-07-02 10:56:12 +0100
commit108f6af0a82cf3b61f3ac6728e2241805a935b64 (patch)
treeb7ef30935a4d632131f9b5dbc6085a106fb05cc6 /arch/arm/mm
parente22c12f9146d50ee6b0cf97db46b3310409f64e6 (diff)
downloadkernel_goldelico_gta04-108f6af0a82cf3b61f3ac6728e2241805a935b64.zip
kernel_goldelico_gta04-108f6af0a82cf3b61f3ac6728e2241805a935b64.tar.gz
kernel_goldelico_gta04-108f6af0a82cf3b61f3ac6728e2241805a935b64.tar.bz2
ARM: entry: data abort: always use r6 for offset
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mm')
-rw-r--r--arch/arm/mm/abort-lv4t.S6
-rw-r--r--arch/arm/mm/proc-arm6_7.S6
2 files changed, 6 insertions, 6 deletions
diff --git a/arch/arm/mm/abort-lv4t.S b/arch/arm/mm/abort-lv4t.S
index 921aaab..54b6d27 100644
--- a/arch/arm/mm/abort-lv4t.S
+++ b/arch/arm/mm/abort-lv4t.S
@@ -102,13 +102,13 @@ ENTRY(v4t_late_abort)
tst r8, #1 << 21 @ check writeback bit
beq do_DataAbort @ no writeback -> no fixup
.data_arm_lateldrpostconst:
- movs r9, r8, lsl #20 @ Get offset
+ movs r6, r8, lsl #20 @ Get offset
beq do_DataAbort @ zero -> no fixup
and r5, r8, #15 << 16 @ Extract 'n' from instruction
ldr r7, [r2, r5, lsr #14] @ Get register 'Rn'
tst r8, #1 << 23 @ Check U bit
- subne r7, r7, r9, lsr #20 @ Undo increment
- addeq r7, r7, r9, lsr #20 @ Undo decrement
+ subne r7, r7, r6, lsr #20 @ Undo increment
+ addeq r7, r7, r6, lsr #20 @ Undo decrement
str r7, [r2, r5, lsr #14] @ Put register 'Rn'
b do_DataAbort
diff --git a/arch/arm/mm/proc-arm6_7.S b/arch/arm/mm/proc-arm6_7.S
index 141906e..4d96311 100644
--- a/arch/arm/mm/proc-arm6_7.S
+++ b/arch/arm/mm/proc-arm6_7.S
@@ -116,13 +116,13 @@ ENTRY(cpu_arm6_data_abort)
tst r8, #1 << 21 @ check writeback bit
beq do_DataAbort @ no writeback -> no fixup
.data_arm_lateldrpostconst:
- movs r9, r8, lsl #20 @ Get offset
+ movs r6, r8, lsl #20 @ Get offset
beq do_DataAbort @ zero -> no fixup
and r5, r8, #15 << 16 @ Extract 'n' from instruction
ldr r7, [r2, r5, lsr #14] @ Get register 'Rn'
tst r8, #1 << 23 @ Check U bit
- subne r7, r7, r9, lsr #20 @ Undo increment
- addeq r7, r7, r9, lsr #20 @ Undo decrement
+ subne r7, r7, r6, lsr #20 @ Undo increment
+ addeq r7, r7, r6, lsr #20 @ Undo decrement
str r7, [r2, r5, lsr #14] @ Put register 'Rn'
b do_DataAbort