xref: /linux/arch/arm64/mm/extable.c (revision e5c86679d5e864947a52fb31e45a425dea3e7fa9)
1 /*
2  * Based on arch/arm/mm/extable.c
3  */
4 
5 #include <linux/extable.h>
6 #include <linux/uaccess.h>
7 
8 int fixup_exception(struct pt_regs *regs)
9 {
10 	const struct exception_table_entry *fixup;
11 
12 	fixup = search_exception_tables(instruction_pointer(regs));
13 	if (fixup)
14 		regs->pc = (unsigned long)&fixup->fixup + fixup->fixup;
15 
16 	return fixup != NULL;
17 }
18