Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003  * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
0004  *
0005  * Borrowed heavily from MIPS
0006  */
0007 
0008 #include <linux/export.h>
0009 #include <linux/extable.h>
0010 #include <linux/uaccess.h>
0011 
0012 int fixup_exception(struct pt_regs *regs)
0013 {
0014     const struct exception_table_entry *fixup;
0015 
0016     fixup = search_exception_tables(instruction_pointer(regs));
0017     if (fixup) {
0018         regs->ret = fixup->fixup;
0019 
0020         return 1;
0021     }
0022 
0023     return 0;
0024 }
0025 
0026 #ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
0027 
0028 unsigned long arc_clear_user_noinline(void __user *to,
0029         unsigned long n)
0030 {
0031     return __arc_clear_user(to, n);
0032 }
0033 EXPORT_SYMBOL(arc_clear_user_noinline);
0034 
0035 #endif