[PATCH] x86_64: Move export symbols to their C functions
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / arch / x86_64 / kernel / x8664_ksyms.c
CommitLineData
2ee60e17
AK
1/* Exports for assembly files.
2 All C exports should go in the respective C files. */
3
1da177e4
LT
4#include <linux/config.h>
5#include <linux/module.h>
6#include <linux/smp.h>
1da177e4
LT
7
8#include <asm/semaphore.h>
9#include <asm/processor.h>
1da177e4 10#include <asm/uaccess.h>
1da177e4 11#include <asm/pgtable.h>
1da177e4 12
1da177e4 13EXPORT_SYMBOL(kernel_thread);
1da177e4
LT
14
15EXPORT_SYMBOL(__down_failed);
16EXPORT_SYMBOL(__down_failed_interruptible);
17EXPORT_SYMBOL(__down_failed_trylock);
18EXPORT_SYMBOL(__up_wakeup);
1da177e4
LT
19
20EXPORT_SYMBOL(__get_user_1);
21EXPORT_SYMBOL(__get_user_2);
22EXPORT_SYMBOL(__get_user_4);
23EXPORT_SYMBOL(__get_user_8);
24EXPORT_SYMBOL(__put_user_1);
25EXPORT_SYMBOL(__put_user_2);
26EXPORT_SYMBOL(__put_user_4);
27EXPORT_SYMBOL(__put_user_8);
28
1da177e4
LT
29EXPORT_SYMBOL(copy_user_generic);
30EXPORT_SYMBOL(copy_from_user);
31EXPORT_SYMBOL(copy_to_user);
1da177e4
LT
32
33EXPORT_SYMBOL(copy_page);
34EXPORT_SYMBOL(clear_page);
35
1da177e4 36#ifdef CONFIG_SMP
2ee60e17
AK
37extern void FASTCALL( __write_lock_failed(rwlock_t *rw));
38extern void FASTCALL( __read_lock_failed(rwlock_t *rw));
1da177e4
LT
39EXPORT_SYMBOL(__write_lock_failed);
40EXPORT_SYMBOL(__read_lock_failed);
1da177e4
LT
41#endif
42
1da177e4
LT
43/* Export string functions. We normally rely on gcc builtin for most of these,
44 but gcc sometimes decides not to inline them. */
45#undef memcpy
46#undef memset
47#undef memmove
1da177e4
LT
48
49extern void * memset(void *,int,__kernel_size_t);
1da177e4
LT
50extern void * memcpy(void *,const void *,__kernel_size_t);
51extern void * __memcpy(void *,const void *,__kernel_size_t);
1da177e4
LT
52
53EXPORT_SYMBOL(memset);
1da177e4
LT
54EXPORT_SYMBOL(memcpy);
55EXPORT_SYMBOL(__memcpy);
1da177e4 56
1da177e4 57EXPORT_SYMBOL(empty_zero_page);
1da177e4 58EXPORT_SYMBOL(init_level4_pgt);
ea0be473
AK
59EXPORT_SYMBOL(load_gs_index);
60