/* MN10300 In-kernel exception handling1*2* Copyright (C) 2007 Matsushita Electric Industrial Co., Ltd.3* Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.4*5* This program is free software; you can redistribute it and/or6* modify it under the terms of the GNU General Public Licence7* as published by the Free Software Foundation; either version8* 2 of the Licence, or (at your option) any later version.9*/10#include <linux/module.h>11#include <linux/spinlock.h>12#include <asm/uaccess.h>1314int fixup_exception(struct pt_regs *regs)15{16const struct exception_table_entry *fixup;1718fixup = search_exception_tables(regs->pc);19if (fixup) {20regs->pc = fixup->fixup;21return 1;22}2324return 0;25}262728