mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-23 09:56:00 +00:00
0ea9365a51
These files were only including module.h for exception table related functions. We've now separated that content out into its own file "extable.h" so now move over to that and avoid all the extra header content in module.h that we don't really need to compile these files. Cc: Russell King <linux@armlinux.org.uk> Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
22 lines
452 B
C
22 lines
452 B
C
/*
|
|
* linux/arch/arm/mm/extable.c
|
|
*/
|
|
#include <linux/extable.h>
|
|
#include <linux/uaccess.h>
|
|
|
|
int fixup_exception(struct pt_regs *regs)
|
|
{
|
|
const struct exception_table_entry *fixup;
|
|
|
|
fixup = search_exception_tables(instruction_pointer(regs));
|
|
if (fixup) {
|
|
regs->ARM_pc = fixup->fixup;
|
|
#ifdef CONFIG_THUMB2_KERNEL
|
|
/* Clear the IT state to avoid nasty surprises in the fixup */
|
|
regs->ARM_cpsr &= ~PSR_IT_MASK;
|
|
#endif
|
|
}
|
|
|
|
return fixup != NULL;
|
|
}
|