/*1* Copyright 2010 Tilera Corporation. All Rights Reserved.2*3* This program is free software; you can redistribute it and/or4* modify it under the terms of the GNU General Public License5* as published by the Free Software Foundation, version 2.6*7* This program is distributed in the hope that it will be useful, but8* WITHOUT ANY WARRANTY; without even the implied warranty of9* MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or10* NON INFRINGEMENT. See the GNU General Public License for11* more details.12*/1314#include <linux/module.h>15#include <linux/spinlock.h>16#include <linux/uaccess.h>1718int fixup_exception(struct pt_regs *regs)19{20const struct exception_table_entry *fixup;2122fixup = search_exception_tables(regs->pc);23if (fixup) {24regs->pc = fixup->fixup;25return 1;26}2728return 0;29}303132