Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #include <linux/linkage.h>
0003 #include <asm/assembler.h>
0004 /*
0005  * Function: v7_early_abort
0006  *
0007  * Params  : r2 = pt_regs
0008  *     : r4 = aborted context pc
0009  *     : r5 = aborted context psr
0010  *
0011  * Returns : r4 - r11, r13 preserved
0012  *
0013  * Purpose : obtain information about current aborted instruction.
0014  */
0015     .align  5
0016 ENTRY(v7_early_abort)
0017     mrc p15, 0, r1, c5, c0, 0       @ get FSR
0018     mrc p15, 0, r0, c6, c0, 0       @ get FAR
0019     uaccess_disable ip          @ disable userspace access
0020     b   do_DataAbort
0021 ENDPROC(v7_early_abort)