Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * This file is subject to the terms and conditions of the GNU General Public
0003  * License.  See the file "COPYING" in the main directory of this archive
0004  * for more details.
0005  *
0006  * Copyright (C) 1997, 99, 2001 - 2004 Ralf Baechle <ralf@linux-mips.org>
0007  */
0008 #include <linux/extable.h>
0009 #include <linux/spinlock.h>
0010 #include <asm/branch.h>
0011 #include <linux/uaccess.h>
0012 
0013 int fixup_exception(struct pt_regs *regs)
0014 {
0015     const struct exception_table_entry *fixup;
0016 
0017     fixup = search_exception_tables(exception_epc(regs));
0018     if (fixup) {
0019         regs->cp0_epc = fixup->nextinsn;
0020 
0021         return 1;
0022     }
0023 
0024     return 0;
0025 }