blob: 875761f44f3bbb7d5bb064ab0e6a06144de22a96 [file] [log] [blame]
Kirill A. Shutemov4fb28472009-09-25 13:39:47 +01001#include <linux/linkage.h>
2#include <asm/assembler.h>
3
4/*
Russell King8dfe7ac2011-06-26 12:37:35 +01005 * Function: v7_pabort
Kirill A. Shutemov4fb28472009-09-25 13:39:47 +01006 *
Russell King8dfe7ac2011-06-26 12:37:35 +01007 * Params : r2 = pt_regs
8 * : r4 = address of aborted instruction
9 * : r5 = psr for parent context
Kirill A. Shutemov4fb28472009-09-25 13:39:47 +010010 *
Russell King8dfe7ac2011-06-26 12:37:35 +010011 * Returns : r4 - r11, r13 preserved
Kirill A. Shutemov4fb28472009-09-25 13:39:47 +010012 *
13 * Purpose : obtain information about current prefetch abort.
14 */
15
16 .align 5
17ENTRY(v7_pabort)
18 mrc p15, 0, r0, c6, c0, 2 @ get IFAR
19 mrc p15, 0, r1, c5, c0, 1 @ get IFSR
Russell King8dfe7ac2011-06-26 12:37:35 +010020 b do_PrefetchAbort
Kirill A. Shutemov4fb28472009-09-25 13:39:47 +010021ENDPROC(v7_pabort)