Merge tag 'block-5.14-2021-08-07' of git://git.kernel.dk/linux-block
[linux-2.6-microblaze.git] / arch / arm / mm / abort-ev7.S
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #include <linux/linkage.h>
3 #include <asm/assembler.h>
4 /*
5  * Function: v7_early_abort
6  *
7  * Params  : r2 = pt_regs
8  *         : r4 = aborted context pc
9  *         : r5 = aborted context psr
10  *
11  * Returns : r4 - r11, r13 preserved
12  *
13  * Purpose : obtain information about current aborted instruction.
14  */
15         .align  5
16 ENTRY(v7_early_abort)
17         mrc     p15, 0, r1, c5, c0, 0           @ get FSR
18         mrc     p15, 0, r0, c6, c0, 0           @ get FAR
19         uaccess_disable ip                      @ disable userspace access
20         b       do_DataAbort
21 ENDPROC(v7_early_abort)