diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-06-26 09:42:02 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-07-02 05:56:11 -0400 |
commit | 0d147db0c127c561f8f9ead9f3c1ec38f89f1040 (patch) | |
tree | ed499217d06bd42fc70bfcd7d3c0ae8ee05bc0b8 /arch/arm/mm/abort-ev7.S | |
parent | 3e287bec6fde088bff05ee7f998f53e8ac75b922 (diff) |
ARM: entry: data abort: avoid using r2 in abort helpers
This allows us to pass the pt_regs pointer in to these functions
ready for tail-calling the abort handler.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mm/abort-ev7.S')
-rw-r--r-- | arch/arm/mm/abort-ev7.S | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mm/abort-ev7.S b/arch/arm/mm/abort-ev7.S index 6cb51431a859..6f98b3a17ac7 100644 --- a/arch/arm/mm/abort-ev7.S +++ b/arch/arm/mm/abort-ev7.S | |||
@@ -41,13 +41,13 @@ ENTRY(v7_early_abort) | |||
41 | 41 | ||
42 | mcr p15, 0, r0, c7, c8, 0 @ Retranslate FAR | 42 | mcr p15, 0, r0, c7, c8, 0 @ Retranslate FAR |
43 | isb | 43 | isb |
44 | mrc p15, 0, r2, c7, c4, 0 @ Read the PAR | 44 | mrc p15, 0, ip, c7, c4, 0 @ Read the PAR |
45 | and r3, r2, #0x7b @ On translation fault | 45 | and r3, ip, #0x7b @ On translation fault |
46 | cmp r3, #0x0b | 46 | cmp r3, #0x0b |
47 | movne pc, lr | 47 | movne pc, lr |
48 | bic r1, r1, #0xf @ Fix up FSR FS[5:0] | 48 | bic r1, r1, #0xf @ Fix up FSR FS[5:0] |
49 | and r2, r2, #0x7e | 49 | and ip, ip, #0x7e |
50 | orr r1, r1, r2, LSR #1 | 50 | orr r1, r1, ip, LSR #1 |
51 | #endif | 51 | #endif |
52 | 52 | ||
53 | mov pc, lr | 53 | mov pc, lr |