This source file includes following definitions.
- fixup_exception
- arc_clear_user_noinline
- arc_strncpy_from_user_noinline
- arc_strnlen_user_noinline
1
2
3
4
5
6
7
8 #include <linux/export.h>
9 #include <linux/extable.h>
10 #include <linux/uaccess.h>
11
12 int fixup_exception(struct pt_regs *regs)
13 {
14 const struct exception_table_entry *fixup;
15
16 fixup = search_exception_tables(instruction_pointer(regs));
17 if (fixup) {
18 regs->ret = fixup->fixup;
19
20 return 1;
21 }
22
23 return 0;
24 }
25
26 #ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
27
28 unsigned long arc_clear_user_noinline(void __user *to,
29 unsigned long n)
30 {
31 return __arc_clear_user(to, n);
32 }
33 EXPORT_SYMBOL(arc_clear_user_noinline);
34
35 long arc_strncpy_from_user_noinline(char *dst, const char __user *src,
36 long count)
37 {
38 return __arc_strncpy_from_user(dst, src, count);
39 }
40 EXPORT_SYMBOL(arc_strncpy_from_user_noinline);
41
42 long arc_strnlen_user_noinline(const char __user *src, long n)
43 {
44 return __arc_strnlen_user(src, n);
45 }
46 EXPORT_SYMBOL(arc_strnlen_user_noinline);
47 #endif