]> Git Repo - linux.git/blob - arch/riscv/mm/extable.c
proc/vmcore: convert oldmem_pfn_is_ram callback to more generic vmcore callbacks
[linux.git] / arch / riscv / mm / extable.c
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * Copyright (C) 2009 Sunplus Core Technology Co., Ltd.
4  *  Lennox Wu <[email protected]>
5  *  Chen Liqin <[email protected]>
6  * Copyright (C) 2013 Regents of the University of California
7  */
8
9
10 #include <linux/extable.h>
11 #include <linux/module.h>
12 #include <linux/uaccess.h>
13
14 int fixup_exception(struct pt_regs *regs)
15 {
16         const struct exception_table_entry *fixup;
17
18         fixup = search_exception_tables(regs->epc);
19         if (fixup) {
20                 regs->epc = fixup->fixup;
21                 return 1;
22         }
23         return 0;
24 }
This page took 0.036967 seconds and 4 git commands to generate.