Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __ASM_GENERIC_EXTABLE_H
0003 #define __ASM_GENERIC_EXTABLE_H
0004 
0005 /*
0006  * The exception table consists of pairs of addresses: the first is the
0007  * address of an instruction that is allowed to fault, and the second is
0008  * the address at which the program should continue.  No registers are
0009  * modified, so it is entirely up to the continuation code to figure out
0010  * what to do.
0011  *
0012  * All the routines below use bits of fixup code that are out of line
0013  * with the main instruction path.  This means when everything is well,
0014  * we don't even have to jump over them.  Further, they do not intrude
0015  * on our cache or tlb entries.
0016  */
0017 
0018 struct exception_table_entry
0019 {
0020     unsigned long insn, fixup;
0021 };
0022 
0023 
0024 struct pt_regs;
0025 extern int fixup_exception(struct pt_regs *regs);
0026 
0027 #endif