kvm tools, setup: Create private directory
[linux-2.6/next.git] / arch / mn10300 / mm / extable.c
blob25e5485ab87d6f3146f2c93b8a2a9667152cc6c1
1 /* MN10300 In-kernel exception handling
3 * Copyright (C) 2007 Matsushita Electric Industrial Co., Ltd.
4 * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public Licence
8 * as published by the Free Software Foundation; either version
9 * 2 of the Licence, or (at your option) any later version.
11 #include <linux/module.h>
12 #include <linux/spinlock.h>
13 #include <asm/uaccess.h>
15 int fixup_exception(struct pt_regs *regs)
17 const struct exception_table_entry *fixup;
19 fixup = search_exception_tables(regs->pc);
20 if (fixup) {
21 regs->pc = fixup->fixup;
22 return 1;
25 return 0;