x8664_ksyms_64.c 2.1 KB
Newer Older
1 2 3
/* Exports for assembly files.
   All C exports should go in the respective C files. */

4
#include <linux/export.h>
5
#include <linux/spinlock_types.h>
L
Linus Torvalds 已提交
6 7
#include <linux/smp.h>

I
Ingo Molnar 已提交
8 9
#include <net/checksum.h>

L
Linus Torvalds 已提交
10 11
#include <asm/processor.h>
#include <asm/pgtable.h>
I
Ingo Molnar 已提交
12
#include <asm/uaccess.h>
13
#include <asm/desc.h>
14
#include <asm/ftrace.h>
L
Linus Torvalds 已提交
15

16
#ifdef CONFIG_FUNCTION_TRACER
17 18 19 20
/* mcount and __fentry__ are defined in assembly */
#ifdef CC_USING_FENTRY
EXPORT_SYMBOL(__fentry__);
#else
I
Ingo Molnar 已提交
21 22
EXPORT_SYMBOL(mcount);
#endif
23
#endif
L
Linus Torvalds 已提交
24 25 26 27 28 29 30 31 32 33

EXPORT_SYMBOL(__get_user_1);
EXPORT_SYMBOL(__get_user_2);
EXPORT_SYMBOL(__get_user_4);
EXPORT_SYMBOL(__get_user_8);
EXPORT_SYMBOL(__put_user_1);
EXPORT_SYMBOL(__put_user_2);
EXPORT_SYMBOL(__put_user_4);
EXPORT_SYMBOL(__put_user_8);

34 35
EXPORT_SYMBOL(copy_user_generic_string);
EXPORT_SYMBOL(copy_user_generic_unrolled);
36
EXPORT_SYMBOL(copy_user_enhanced_fast_string);
37
EXPORT_SYMBOL(__copy_user_nocache);
38
EXPORT_SYMBOL(_copy_from_user);
39
EXPORT_SYMBOL(_copy_to_user);
L
Linus Torvalds 已提交
40

T
Tony Luck 已提交
41
EXPORT_SYMBOL_GPL(memcpy_mcsafe_unrolled);
T
Tony Luck 已提交
42

L
Linus Torvalds 已提交
43 44 45
EXPORT_SYMBOL(copy_page);
EXPORT_SYMBOL(clear_page);

I
Ingo Molnar 已提交
46 47
EXPORT_SYMBOL(csum_partial);

48 49 50
EXPORT_SYMBOL(__sw_hweight32);
EXPORT_SYMBOL(__sw_hweight64);

51 52 53 54
/*
 * Export string functions. We normally rely on gcc builtin for most of these,
 * but gcc sometimes decides not to inline them.
 */
L
Linus Torvalds 已提交
55 56 57 58
#undef memcpy
#undef memset
#undef memmove

59 60 61
extern void *__memset(void *, int, __kernel_size_t);
extern void *__memcpy(void *, const void *, __kernel_size_t);
extern void *__memmove(void *, const void *, __kernel_size_t);
62 63
extern void *memset(void *, int, __kernel_size_t);
extern void *memcpy(void *, const void *, __kernel_size_t);
64 65 66 67 68
extern void *memmove(void *, const void *, __kernel_size_t);

EXPORT_SYMBOL(__memset);
EXPORT_SYMBOL(__memcpy);
EXPORT_SYMBOL(__memmove);
L
Linus Torvalds 已提交
69 70 71

EXPORT_SYMBOL(memset);
EXPORT_SYMBOL(memcpy);
72
EXPORT_SYMBOL(memmove);
L
Linus Torvalds 已提交
73

74 75 76
#ifndef CONFIG_DEBUG_VIRTUAL
EXPORT_SYMBOL(phys_base);
#endif
L
Linus Torvalds 已提交
77
EXPORT_SYMBOL(empty_zero_page);
R
Rusty Russell 已提交
78 79 80
#ifndef CONFIG_PARAVIRT
EXPORT_SYMBOL(native_load_gs_index);
#endif
81 82 83

#ifdef CONFIG_PREEMPT
EXPORT_SYMBOL(___preempt_schedule);
84
EXPORT_SYMBOL(___preempt_schedule_notrace);
85
#endif