2 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
8 * Borrowed heavily from MIPS
11 #include <linux/export.h>
12 #include <linux/extable.h>
13 #include <linux/uaccess.h>
15 int fixup_exception(struct pt_regs *regs)
17 const struct exception_table_entry *fixup;
19 fixup = search_exception_tables(instruction_pointer(regs));
21 regs->ret = fixup->fixup;
29 #ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
31 long arc_copy_from_user_noinline(void *to, const void __user *from,
34 return __arc_copy_from_user(to, from, n);
36 EXPORT_SYMBOL(arc_copy_from_user_noinline);
38 long arc_copy_to_user_noinline(void __user *to, const void *from,
41 return __arc_copy_to_user(to, from, n);
43 EXPORT_SYMBOL(arc_copy_to_user_noinline);
45 unsigned long arc_clear_user_noinline(void __user *to,
48 return __arc_clear_user(to, n);
50 EXPORT_SYMBOL(arc_clear_user_noinline);
52 long arc_strncpy_from_user_noinline(char *dst, const char __user *src,
55 return __arc_strncpy_from_user(dst, src, count);
57 EXPORT_SYMBOL(arc_strncpy_from_user_noinline);
59 long arc_strnlen_user_noinline(const char __user *src, long n)
61 return __arc_strnlen_user(src, n);
63 EXPORT_SYMBOL(arc_strnlen_user_noinline);