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