1 /* SPDX-License-Identifier: GPL-2.0 */
2 #include <linux/linkage.h>
3 #include <asm/assembler.h>
5 * Function: v7_early_abort
7 * Params : r2 = pt_regs
8 * : r4 = aborted context pc
9 * : r5 = aborted context psr
11 * Returns : r4 - r11, r13 preserved
13 * Purpose : obtain information about current aborted instruction.
18 mrc p15, 0, r1, c5, c0, 0 @ get FSR
19 mrc p15, 0, r0, c6, c0, 0 @ get FAR
20 uaccess_disable ip @ disable userspace access
22 ENDPROC(v7_early_abort)