mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
6bb6bf7fda
This file was 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 this file. Cc: James Hogan <james.hogan@imgtec.com> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
14 lines
302 B
C
14 lines
302 B
C
#include <linux/extable.h>
|
|
#include <linux/uaccess.h>
|
|
|
|
int fixup_exception(struct pt_regs *regs)
|
|
{
|
|
const struct exception_table_entry *fixup;
|
|
unsigned long pc = instruction_pointer(regs);
|
|
|
|
fixup = search_exception_tables(pc);
|
|
if (fixup)
|
|
regs->ctx.CurrPC = fixup->fixup;
|
|
|
|
return fixup != NULL;
|
|
}
|