Merge branch 'for-4.4/io-poll' of git://git.kernel.dk/linux-block
[deliverable/linux.git] / arch / arm / mm / extable.c
CommitLineData
1da177e4
LT
1/*
2 * linux/arch/arm/mm/extable.c
3 */
4#include <linux/module.h>
33fa9b13 5#include <linux/uaccess.h>
1da177e4
LT
6
7int fixup_exception(struct pt_regs *regs)
8{
9 const struct exception_table_entry *fixup;
10
11 fixup = search_exception_tables(instruction_pointer(regs));
e16b31bf 12 if (fixup) {
1da177e4 13 regs->ARM_pc = fixup->fixup;
e16b31bf
MZ
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
18 }
1da177e4
LT
19
20 return fixup != NULL;
21}
This page took 0.698288 seconds and 5 git commands to generate.