1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */ 2*4882a593Smuzhiyun #ifndef __ASM_GENERIC_EXTABLE_H 3*4882a593Smuzhiyun #define __ASM_GENERIC_EXTABLE_H 4*4882a593Smuzhiyun 5*4882a593Smuzhiyun /* 6*4882a593Smuzhiyun * The exception table consists of pairs of addresses: the first is the 7*4882a593Smuzhiyun * address of an instruction that is allowed to fault, and the second is 8*4882a593Smuzhiyun * the address at which the program should continue. No registers are 9*4882a593Smuzhiyun * modified, so it is entirely up to the continuation code to figure out 10*4882a593Smuzhiyun * what to do. 11*4882a593Smuzhiyun * 12*4882a593Smuzhiyun * All the routines below use bits of fixup code that are out of line 13*4882a593Smuzhiyun * with the main instruction path. This means when everything is well, 14*4882a593Smuzhiyun * we don't even have to jump over them. Further, they do not intrude 15*4882a593Smuzhiyun * on our cache or tlb entries. 16*4882a593Smuzhiyun */ 17*4882a593Smuzhiyun 18*4882a593Smuzhiyun struct exception_table_entry 19*4882a593Smuzhiyun { 20*4882a593Smuzhiyun unsigned long insn, fixup; 21*4882a593Smuzhiyun }; 22*4882a593Smuzhiyun 23*4882a593Smuzhiyun 24*4882a593Smuzhiyun struct pt_regs; 25*4882a593Smuzhiyun extern int fixup_exception(struct pt_regs *regs); 26*4882a593Smuzhiyun 27*4882a593Smuzhiyun #endif 28