Kirill A. Shutemov | 4fb2847 | 2009-09-25 13:39:47 +0100 | [diff] [blame] | 1 | #include <linux/linkage.h> |
| 2 | #include <asm/assembler.h> |
| 3 | |
| 4 | /* |
| 5 | * Function: v6_pabort |
| 6 | * |
Russell King | 8dfe7ac | 2011-06-26 12:37:35 +0100 | [diff] [blame^] | 7 | * Params : r2 = pt_regs |
| 8 | * : r4 = address of aborted instruction |
| 9 | * : r5 = psr for parent context |
Kirill A. Shutemov | 4fb2847 | 2009-09-25 13:39:47 +0100 | [diff] [blame] | 10 | * |
Russell King | 8dfe7ac | 2011-06-26 12:37:35 +0100 | [diff] [blame^] | 11 | * Returns : r4 - r11, r13 preserved |
Kirill A. Shutemov | 4fb2847 | 2009-09-25 13:39:47 +0100 | [diff] [blame] | 12 | * |
| 13 | * Purpose : obtain information about current prefetch abort. |
| 14 | */ |
| 15 | |
| 16 | .align 5 |
| 17 | ENTRY(v6_pabort) |
Russell King | 8b41861 | 2011-06-25 19:25:02 +0100 | [diff] [blame] | 18 | mov r0, r4 |
Kirill A. Shutemov | 4fb2847 | 2009-09-25 13:39:47 +0100 | [diff] [blame] | 19 | mrc p15, 0, r1, c5, c0, 1 @ get IFSR |
Russell King | 8dfe7ac | 2011-06-26 12:37:35 +0100 | [diff] [blame^] | 20 | b do_PrefetchAbort |
Kirill A. Shutemov | 4fb2847 | 2009-09-25 13:39:47 +0100 | [diff] [blame] | 21 | ENDPROC(v6_pabort) |