]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - arch/nios2/mm/extable.c
Merge tag 'drm-amdkfd-fixes-2017-11-26' of git://people.freedesktop.org/~gabbayo...
[mirror_ubuntu-bionic-kernel.git] / arch / nios2 / mm / extable.c
CommitLineData
862674d4
LFT
1/*
2 * Copyright (C) 2010, Tobias Klauser <tklauser@distanz.ch>
3 * Copyright (C) 2009, Wind River Systems Inc
4 * Implemented by fredrik.markstrom@gmail.com and ivarholmqvist@gmail.com
5 *
6 * This file is subject to the terms and conditions of the GNU General Public
7 * License. See the file "COPYING" in the main directory of this archive
8 * for more details.
9 */
10
7e227e88 11#include <linux/extable.h>
862674d4
LFT
12#include <linux/uaccess.h>
13
14int fixup_exception(struct pt_regs *regs)
15{
16 const struct exception_table_entry *fixup;
17
18 fixup = search_exception_tables(regs->ea);
19 if (fixup) {
20 regs->ea = fixup->fixup;
21 return 1;
22 }
23
24 return 0;
25}