mirror of
https://github.com/torvalds/linux.git
synced 2024-10-30 00:32:38 +00:00
22 lines
366 B
C
22 lines
366 B
C
|
/*
|
||
|
* linux/arch/mips/mm/extable.c
|
||
|
*/
|
||
|
#include <linux/module.h>
|
||
|
#include <linux/spinlock.h>
|
||
|
#include <asm/branch.h>
|
||
|
#include <asm/uaccess.h>
|
||
|
|
||
|
int fixup_exception(struct pt_regs *regs)
|
||
|
{
|
||
|
const struct exception_table_entry *fixup;
|
||
|
|
||
|
fixup = search_exception_tables(exception_epc(regs));
|
||
|
if (fixup) {
|
||
|
regs->cp0_epc = fixup->nextinsn;
|
||
|
|
||
|
return 1;
|
||
|
}
|
||
|
|
||
|
return 0;
|
||
|
}
|