GNU Linux-libre 4.4.285-gnu1
[releases.git] / arch / x86 / kernel / x8664_ksyms_64.c
1 /* Exports for assembly files.
2    All C exports should go in the respective C files. */
3
4 #include <linux/module.h>
5 #include <linux/smp.h>
6
7 #include <net/checksum.h>
8
9 #include <asm/processor.h>
10 #include <asm/pgtable.h>
11 #include <asm/uaccess.h>
12 #include <asm/desc.h>
13 #include <asm/ftrace.h>
14
15 #ifdef CONFIG_FUNCTION_TRACER
16 /* mcount and __fentry__ are defined in assembly */
17 #ifdef CC_USING_FENTRY
18 EXPORT_SYMBOL(__fentry__);
19 #else
20 EXPORT_SYMBOL(mcount);
21 #endif
22 #endif
23
24 EXPORT_SYMBOL(__get_user_1);
25 EXPORT_SYMBOL(__get_user_2);
26 EXPORT_SYMBOL(__get_user_4);
27 EXPORT_SYMBOL(__get_user_8);
28 EXPORT_SYMBOL(__put_user_1);
29 EXPORT_SYMBOL(__put_user_2);
30 EXPORT_SYMBOL(__put_user_4);
31 EXPORT_SYMBOL(__put_user_8);
32
33 EXPORT_SYMBOL(copy_user_generic_string);
34 EXPORT_SYMBOL(copy_user_generic_unrolled);
35 EXPORT_SYMBOL(copy_user_enhanced_fast_string);
36 EXPORT_SYMBOL(__copy_user_nocache);
37 EXPORT_SYMBOL(_copy_from_user);
38 EXPORT_SYMBOL(_copy_to_user);
39
40 EXPORT_SYMBOL(copy_page);
41 EXPORT_SYMBOL(clear_page);
42
43 EXPORT_SYMBOL(csum_partial);
44
45 EXPORT_SYMBOL(__sw_hweight32);
46 EXPORT_SYMBOL(__sw_hweight64);
47
48 /*
49  * Export string functions. We normally rely on gcc builtin for most of these,
50  * but gcc sometimes decides not to inline them.
51  */
52 #undef memcpy
53 #undef memset
54 #undef memmove
55
56 extern void *__memset(void *, int, __kernel_size_t);
57 extern void *__memcpy(void *, const void *, __kernel_size_t);
58 extern void *__memmove(void *, const void *, __kernel_size_t);
59 extern void *memset(void *, int, __kernel_size_t);
60 extern void *memcpy(void *, const void *, __kernel_size_t);
61 extern void *memmove(void *, const void *, __kernel_size_t);
62
63 EXPORT_SYMBOL(__memset);
64 EXPORT_SYMBOL(__memcpy);
65 EXPORT_SYMBOL(__memmove);
66
67 EXPORT_SYMBOL(memset);
68 EXPORT_SYMBOL(memcpy);
69 EXPORT_SYMBOL(memmove);
70
71 #ifndef CONFIG_DEBUG_VIRTUAL
72 EXPORT_SYMBOL(phys_base);
73 #endif
74 EXPORT_SYMBOL(empty_zero_page);
75 #ifndef CONFIG_PARAVIRT
76 EXPORT_SYMBOL(native_load_gs_index);
77 #endif
78
79 #ifdef CONFIG_PREEMPT
80 EXPORT_SYMBOL(___preempt_schedule);
81 EXPORT_SYMBOL(___preempt_schedule_notrace);
82 #endif