Replace <asm/uaccess.h> with <linux/uaccess.h> globally
[linux-2.6-block.git] / arch / mips / mm / extable.c
CommitLineData
1da177e4 1/*
49316cbf
RB
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
5 *
6 * Copyright (C) 1997, 99, 2001 - 2004 Ralf Baechle <ralf@linux-mips.org>
1da177e4 7 */
9f3b8081 8#include <linux/extable.h>
1da177e4
LT
9#include <linux/spinlock.h>
10#include <asm/branch.h>
7c0f6ba6 11#include <linux/uaccess.h>
1da177e4
LT
12
13int fixup_exception(struct pt_regs *regs)
14{
15 const struct exception_table_entry *fixup;
16
17 fixup = search_exception_tables(exception_epc(regs));
18 if (fixup) {
19 regs->cp0_epc = fixup->nextinsn;
20
21 return 1;
22 }
23
24 return 0;
25}