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>
This commit is contained in:
Russell King
2011-06-26 12:37:35 +01:00
父節點 d9600c99c5
當前提交 8dfe7ac96f
共有 4 個文件被更改,包括 19 次插入18 次删除

查看文件

@@ -4,10 +4,11 @@
/*
* Function: legacy_pabort
*
* Params : r4 = address of aborted instruction
* Params : r2 = pt_regs
* : r4 = address of aborted instruction
* : r5 = psr for parent context
*
* Returns : r0 = address of abort
* : r1 = Simulated IFSR with section translation fault status
* Returns : r4 - r11, r13 preserved
*
* Purpose : obtain information about current prefetch abort.
*/
@@ -16,5 +17,5 @@
ENTRY(legacy_pabort)
mov r0, r4
mov r1, #5
mov pc, lr
b do_PrefetchAbort
ENDPROC(legacy_pabort)