swh:1:snp:77163734605b0ec556b01d897b7bb4a7e30d46b6
Raw File
Tip revision: 7e22e91102c6b9df7c4ae2168910e19d2bb14cd6 authored by Linus Torvalds on 12 January 2014, 10:04:18 UTC
Linux 3.13-rc8
Tip revision: 7e22e91
extable.c

#include <linux/module.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;
}
back to top