blob: eaac1cb7c4cc4ceea1375b531f048d6b8218e92b [file] [log] [blame]
Kirill A. Shutemov4fb28472009-09-25 13:39:47 +01001#include <linux/linkage.h>
2#include <asm/assembler.h>
3
4/*
5 * Function: v6_pabort
6 *
Russell King8b418612011-06-25 19:25:02 +01007 * Params : r4 = address of aborted instruction
Kirill A. Shutemov4fb28472009-09-25 13:39:47 +01008 *
9 * Returns : r0 = address of abort
10 * : r1 = IFSR
11 *
12 * Purpose : obtain information about current prefetch abort.
13 */
14
15 .align 5
16ENTRY(v6_pabort)
Russell King8b418612011-06-25 19:25:02 +010017 mov r0, r4
Kirill A. Shutemov4fb28472009-09-25 13:39:47 +010018 mrc p15, 0, r1, c5, c0, 1 @ get IFSR
19 mov pc, lr
20ENDPROC(v6_pabort)