a354277bbaa77320e5d738b56f286c2fb10f6bf1
[linux-3.10.git] / arch / alpha / kernel / alpha_ksyms.c
1 /*
2  * linux/arch/alpha/kernel/alpha_ksyms.c
3  *
4  * Export the alpha-specific functions that are needed for loadable
5  * modules.
6  */
7
8 #include <linux/module.h>
9 #include <asm/console.h>
10 #include <asm/uaccess.h>
11 #include <asm/checksum.h>
12 #include <asm/fpu.h>
13 #include <asm/machvec.h>
14
15 #include <linux/syscalls.h>
16
17 /* these are C runtime functions with special calling conventions: */
18 extern void __divl (void);
19 extern void __reml (void);
20 extern void __divq (void);
21 extern void __remq (void);
22 extern void __divlu (void);
23 extern void __remlu (void);
24 extern void __divqu (void);
25 extern void __remqu (void);
26
27 EXPORT_SYMBOL(alpha_mv);
28 EXPORT_SYMBOL(callback_getenv);
29 EXPORT_SYMBOL(callback_setenv);
30 EXPORT_SYMBOL(callback_save_env);
31
32 /* platform dependent support */
33 EXPORT_SYMBOL(strcat);
34 EXPORT_SYMBOL(strcpy);
35 EXPORT_SYMBOL(strlen);
36 EXPORT_SYMBOL(strncpy);
37 EXPORT_SYMBOL(strncat);
38 EXPORT_SYMBOL(strchr);
39 EXPORT_SYMBOL(strrchr);
40 EXPORT_SYMBOL(memmove);
41 EXPORT_SYMBOL(__memcpy);
42 EXPORT_SYMBOL(__memset);
43 EXPORT_SYMBOL(__memsetw);
44 EXPORT_SYMBOL(__constant_c_memset);
45 EXPORT_SYMBOL(copy_page);
46 EXPORT_SYMBOL(clear_page);
47
48 EXPORT_SYMBOL(alpha_read_fp_reg);
49 EXPORT_SYMBOL(alpha_read_fp_reg_s);
50 EXPORT_SYMBOL(alpha_write_fp_reg);
51 EXPORT_SYMBOL(alpha_write_fp_reg_s);
52
53 /* entry.S */
54 EXPORT_SYMBOL(kernel_thread);
55 EXPORT_SYMBOL(kernel_execve);
56
57 /* Networking helper routines. */
58 EXPORT_SYMBOL(csum_tcpudp_magic);
59 EXPORT_SYMBOL(ip_compute_csum);
60 EXPORT_SYMBOL(ip_fast_csum);
61 EXPORT_SYMBOL(csum_partial_copy_nocheck);
62 EXPORT_SYMBOL(csum_partial_copy_from_user);
63 EXPORT_SYMBOL(csum_ipv6_magic);
64
65 #ifdef CONFIG_MATHEMU_MODULE
66 extern long (*alpha_fp_emul_imprecise)(struct pt_regs *, unsigned long);
67 extern long (*alpha_fp_emul) (unsigned long pc);
68 EXPORT_SYMBOL(alpha_fp_emul_imprecise);
69 EXPORT_SYMBOL(alpha_fp_emul);
70 #endif
71
72 /*
73  * The following are specially called from the uaccess assembly stubs.
74  */
75 EXPORT_SYMBOL(__copy_user);
76 EXPORT_SYMBOL(__do_clear_user);
77
78 /* 
79  * SMP-specific symbols.
80  */
81
82 #ifdef CONFIG_SMP
83 EXPORT_SYMBOL(_atomic_dec_and_lock);
84 #endif /* CONFIG_SMP */
85
86 /*
87  * The following are special because they're not called
88  * explicitly (the C compiler or assembler generates them in
89  * response to division operations).  Fortunately, their
90  * interface isn't gonna change any time soon now, so it's OK
91  * to leave it out of version control.
92  */
93 # undef memcpy
94 # undef memset
95 EXPORT_SYMBOL(__divl);
96 EXPORT_SYMBOL(__divlu);
97 EXPORT_SYMBOL(__divq);
98 EXPORT_SYMBOL(__divqu);
99 EXPORT_SYMBOL(__reml);
100 EXPORT_SYMBOL(__remlu);
101 EXPORT_SYMBOL(__remq);
102 EXPORT_SYMBOL(__remqu);
103 EXPORT_SYMBOL(memcpy);
104 EXPORT_SYMBOL(memset);
105 EXPORT_SYMBOL(memchr);