Merge tag 'locks-v3.16-2' of git://git.samba.org/jlayton/linux
[linux/fpc-iii.git] / arch / arm / mm / extable.c
blob312e15e6d00b8a6b909747305166e1bc7f581bf0
1 /*
2 * linux/arch/arm/mm/extable.c
3 */
4 #include <linux/module.h>
5 #include <linux/uaccess.h>
7 int fixup_exception(struct pt_regs *regs)
9 const struct exception_table_entry *fixup;
11 fixup = search_exception_tables(instruction_pointer(regs));
12 if (fixup) {
13 regs->ARM_pc = fixup->fixup;
14 #ifdef CONFIG_THUMB2_KERNEL
15 /* Clear the IT state to avoid nasty surprises in the fixup */
16 regs->ARM_cpsr &= ~PSR_IT_MASK;
17 #endif
20 return fixup != NULL;