diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-06-26 07:37:35 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-07-02 05:56:10 -0400 |
commit | 8dfe7ac96fedd4f5219879f63a8a546a33609daf (patch) | |
tree | c723c0845d9f2080d9a0517bd2a94014870d7134 /arch/arm/kernel/entry-armv.S | |
parent | d9600c99c549732a501cb727157800623a06175d (diff) |
ARM: entry: prefetch abort: tail-call the main prefetch abort handler
Tail-call the main C prefetch abort handler code from the per-CPU
helper code. Also note that the helper function becomes ABI
compliant in terms of the registers preserved.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel/entry-armv.S')
-rw-r--r-- | arch/arm/kernel/entry-armv.S | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/arm/kernel/entry-armv.S b/arch/arm/kernel/entry-armv.S index b17e57949d3b..af2fba7a4cae 100644 --- a/arch/arm/kernel/entry-armv.S +++ b/arch/arm/kernel/entry-armv.S | |||
@@ -45,7 +45,7 @@ | |||
45 | .endm | 45 | .endm |
46 | 46 | ||
47 | .macro pabt_helper | 47 | .macro pabt_helper |
48 | @ PABORT handler takes fault address in r4 | 48 | @ PABORT handler takes pt_regs in r2, fault address in r4 and psr in r5 |
49 | #ifdef MULTI_PABORT | 49 | #ifdef MULTI_PABORT |
50 | ldr ip, .LCprocfns | 50 | ldr ip, .LCprocfns |
51 | mov lr, pc | 51 | mov lr, pc |
@@ -306,9 +306,8 @@ ENDPROC(__und_svc) | |||
306 | .align 5 | 306 | .align 5 |
307 | __pabt_svc: | 307 | __pabt_svc: |
308 | svc_entry | 308 | svc_entry |
309 | pabt_helper | ||
310 | mov r2, sp @ regs | 309 | mov r2, sp @ regs |
311 | bl do_PrefetchAbort @ call abort handler | 310 | pabt_helper |
312 | 311 | ||
313 | @ | 312 | @ |
314 | @ IRQs off again before pulling preserved data off the stack | 313 | @ IRQs off again before pulling preserved data off the stack |
@@ -653,9 +652,8 @@ ENDPROC(__und_usr_unknown) | |||
653 | .align 5 | 652 | .align 5 |
654 | __pabt_usr: | 653 | __pabt_usr: |
655 | usr_entry | 654 | usr_entry |
656 | pabt_helper | ||
657 | mov r2, sp @ regs | 655 | mov r2, sp @ regs |
658 | bl do_PrefetchAbort @ call abort handler | 656 | pabt_helper |
659 | UNWIND(.fnend ) | 657 | UNWIND(.fnend ) |
660 | /* fall through */ | 658 | /* fall through */ |
661 | /* | 659 | /* |