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 | /* |
Russell King | 8dfe7ac | 2011-06-26 12:37:35 +0100 | [diff] [blame] | 5 | * Function: v7_pabort |
Kirill A. Shutemov | 4fb2847 | 2009-09-25 13:39:47 +0100 | [diff] [blame] | 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(v7_pabort) |
| 18 | mrc p15, 0, r0, c6, c0, 2 @ get IFAR |
| 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(v7_pabort) |