1/* SPDX-License-Identifier: GPL-2.0 */
2#include <linux/linkage.h>
3#include <asm/assembler.h>
4
5/*
6 * Function: v7_pabort
7 *
8 * Params  : r2 = pt_regs
9 *	   : r4 = address of aborted instruction
10 *	   : r5 = psr for parent context
11 *
12 * Returns : r4 - r11, r13 preserved
13 *
14 * Purpose : obtain information about current prefetch abort.
15 */
16
17	.align	5
18ENTRY(v7_pabort)
19	mrc	p15, 0, r0, c6, c0, 2		@ get IFAR
20	mrc	p15, 0, r1, c5, c0, 1		@ get IFSR
21	b	do_PrefetchAbort
22ENDPROC(v7_pabort)
23