Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / arch / arc / mm / extable.c
blob88fa3a4d4906dd4c6f0280d4e1728688cd25e9df
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
5 * Borrowed heavily from MIPS
6 */
8 #include <linux/export.h>
9 #include <linux/extable.h>
10 #include <linux/uaccess.h>
12 int fixup_exception(struct pt_regs *regs)
14 const struct exception_table_entry *fixup;
16 fixup = search_exception_tables(instruction_pointer(regs));
17 if (fixup) {
18 regs->ret = fixup->fixup;
20 return 1;
23 return 0;