1 // SPDX-License-Identifier: GPL-2.0 << 2 /* 1 /* 3 * linux/arch/arm/mm/extable.c !! 2 * This file is subject to the terms and conditions of the GNU General Public >> 3 * License. See the file "COPYING" in the main directory of this archive >> 4 * for more details. >> 5 * >> 6 * Copyright (C) 1997, 99, 2001 - 2004 Ralf Baechle <ralf@linux-mips.org> 4 */ 7 */ 5 #include <linux/extable.h> 8 #include <linux/extable.h> >> 9 #include <linux/spinlock.h> >> 10 #include <asm/branch.h> 6 #include <linux/uaccess.h> 11 #include <linux/uaccess.h> 7 12 8 int fixup_exception(struct pt_regs *regs) 13 int fixup_exception(struct pt_regs *regs) 9 { 14 { 10 const struct exception_table_entry *fi 15 const struct exception_table_entry *fixup; 11 16 12 fixup = search_exception_tables(instru !! 17 fixup = search_exception_tables(exception_epc(regs)); 13 if (fixup) { 18 if (fixup) { 14 regs->ARM_pc = fixup->fixup; !! 19 regs->cp0_epc = fixup->nextinsn; 15 #ifdef CONFIG_THUMB2_KERNEL !! 20 16 /* Clear the IT state to avoid !! 21 return 1; 17 regs->ARM_cpsr &= ~PSR_IT_MASK << 18 #endif << 19 } 22 } 20 23 21 return fixup != NULL; !! 24 return 0; 22 } 25 } 23 26
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.