Merge branch 'linus' into tracing/urgent
[linux-2.6] / arch / sh / kernel / sh_ksyms_32.c
1 #include <linux/module.h>
2 #include <linux/smp.h>
3 #include <linux/user.h>
4 #include <linux/elfcore.h>
5 #include <linux/sched.h>
6 #include <linux/in6.h>
7 #include <linux/interrupt.h>
8 #include <linux/vmalloc.h>
9 #include <linux/pci.h>
10 #include <linux/irq.h>
11 #include <asm/sections.h>
12 #include <asm/processor.h>
13 #include <asm/uaccess.h>
14 #include <asm/checksum.h>
15 #include <asm/io.h>
16 #include <asm/delay.h>
17 #include <asm/tlbflush.h>
18 #include <asm/cacheflush.h>
19 #include <asm/ftrace.h>
20
21 extern int dump_fpu(struct pt_regs *, elf_fpregset_t *);
22 extern struct hw_interrupt_type no_irq_type;
23
24 /* platform dependent support */
25 EXPORT_SYMBOL(dump_fpu);
26 EXPORT_SYMBOL(kernel_thread);
27 EXPORT_SYMBOL(irq_desc);
28 EXPORT_SYMBOL(no_irq_type);
29
30 EXPORT_SYMBOL(strlen);
31
32 /* PCI exports */
33 #ifdef CONFIG_PCI
34 EXPORT_SYMBOL(pci_alloc_consistent);
35 EXPORT_SYMBOL(pci_free_consistent);
36 #endif
37
38 /* mem exports */
39 EXPORT_SYMBOL(memchr);
40 EXPORT_SYMBOL(memcpy);
41 EXPORT_SYMBOL(memset);
42 EXPORT_SYMBOL(memmove);
43 EXPORT_SYMBOL(__copy_user);
44
45 #ifdef CONFIG_MMU
46 EXPORT_SYMBOL(get_vm_area);
47 #endif
48
49 EXPORT_SYMBOL(__udelay);
50 EXPORT_SYMBOL(__ndelay);
51 EXPORT_SYMBOL(__const_udelay);
52
53 #define DECLARE_EXPORT(name)            \
54         extern void name(void);EXPORT_SYMBOL(name)
55 #define MAYBE_DECLARE_EXPORT(name)      \
56         extern void name(void) __weak;EXPORT_SYMBOL(name)
57
58 /* These symbols are generated by the compiler itself */
59 DECLARE_EXPORT(__udivsi3);
60 DECLARE_EXPORT(__sdivsi3);
61 DECLARE_EXPORT(__ashrsi3);
62 DECLARE_EXPORT(__ashlsi3);
63 DECLARE_EXPORT(__ashrdi3);
64 DECLARE_EXPORT(__ashldi3);
65 DECLARE_EXPORT(__ashiftrt_r4_6);
66 DECLARE_EXPORT(__ashiftrt_r4_7);
67 DECLARE_EXPORT(__ashiftrt_r4_8);
68 DECLARE_EXPORT(__ashiftrt_r4_9);
69 DECLARE_EXPORT(__ashiftrt_r4_10);
70 DECLARE_EXPORT(__ashiftrt_r4_11);
71 DECLARE_EXPORT(__ashiftrt_r4_12);
72 DECLARE_EXPORT(__ashiftrt_r4_13);
73 DECLARE_EXPORT(__ashiftrt_r4_14);
74 DECLARE_EXPORT(__ashiftrt_r4_15);
75 DECLARE_EXPORT(__ashiftrt_r4_20);
76 DECLARE_EXPORT(__ashiftrt_r4_21);
77 DECLARE_EXPORT(__ashiftrt_r4_22);
78 DECLARE_EXPORT(__ashiftrt_r4_23);
79 DECLARE_EXPORT(__ashiftrt_r4_24);
80 DECLARE_EXPORT(__ashiftrt_r4_27);
81 DECLARE_EXPORT(__ashiftrt_r4_30);
82 DECLARE_EXPORT(__lshrsi3);
83 DECLARE_EXPORT(__lshrdi3);
84 DECLARE_EXPORT(__movstrSI8);
85 DECLARE_EXPORT(__movstrSI12);
86 DECLARE_EXPORT(__movstrSI16);
87 DECLARE_EXPORT(__movstrSI20);
88 DECLARE_EXPORT(__movstrSI24);
89 DECLARE_EXPORT(__movstrSI28);
90 DECLARE_EXPORT(__movstrSI32);
91 DECLARE_EXPORT(__movstrSI36);
92 DECLARE_EXPORT(__movstrSI40);
93 DECLARE_EXPORT(__movstrSI44);
94 DECLARE_EXPORT(__movstrSI48);
95 DECLARE_EXPORT(__movstrSI52);
96 DECLARE_EXPORT(__movstrSI56);
97 DECLARE_EXPORT(__movstrSI60);
98 #if __GNUC__ == 4
99 DECLARE_EXPORT(__movmem);
100 #else
101 DECLARE_EXPORT(__movstr);
102 #endif
103
104 #if __GNUC__ == 4
105 DECLARE_EXPORT(__movmem_i4_even);
106 DECLARE_EXPORT(__movmem_i4_odd);
107 DECLARE_EXPORT(__movmemSI12_i4);
108
109 #if (__GNUC_MINOR__ >= 2 || defined(__GNUC_STM_RELEASE__))
110 /*
111  * GCC >= 4.2 emits these for division, as do GCC 4.1.x versions of the ST
112  * compiler which include backported patches.
113  */
114 DECLARE_EXPORT(__udiv_qrnnd_16);
115 MAYBE_DECLARE_EXPORT(__sdivsi3_i4i);
116 MAYBE_DECLARE_EXPORT(__udivsi3_i4i);
117 #endif
118 #else /* GCC 3.x */
119 DECLARE_EXPORT(__movstr_i4_even);
120 DECLARE_EXPORT(__movstr_i4_odd);
121 DECLARE_EXPORT(__movstrSI12_i4);
122 #endif /* __GNUC__ == 4 */
123
124 #if !defined(CONFIG_CACHE_OFF) && (defined(CONFIG_CPU_SH4) || \
125         defined(CONFIG_SH7705_CACHE_32KB))
126 /* needed by some modules */
127 EXPORT_SYMBOL(flush_cache_all);
128 EXPORT_SYMBOL(flush_cache_range);
129 EXPORT_SYMBOL(flush_dcache_page);
130 #endif
131
132 #if !defined(CONFIG_CACHE_OFF) && defined(CONFIG_MMU) && \
133         (defined(CONFIG_CPU_SH4) || defined(CONFIG_SH7705_CACHE_32KB))
134 EXPORT_SYMBOL(clear_user_page);
135 #endif
136
137 #ifdef CONFIG_FUNCTION_TRACER
138 EXPORT_SYMBOL(mcount);
139 #endif
140 EXPORT_SYMBOL(csum_partial);
141 EXPORT_SYMBOL(csum_partial_copy_generic);
142 #ifdef CONFIG_IPV6
143 EXPORT_SYMBOL(csum_ipv6_magic);
144 #endif
145 EXPORT_SYMBOL(clear_page);
146 EXPORT_SYMBOL(copy_page);
147 EXPORT_SYMBOL(__clear_user);
148 EXPORT_SYMBOL(_ebss);
149 EXPORT_SYMBOL(empty_zero_page);
150
151 #ifndef CONFIG_CACHE_OFF
152 EXPORT_SYMBOL(__flush_purge_region);
153 EXPORT_SYMBOL(__flush_wback_region);
154 EXPORT_SYMBOL(__flush_invalidate_region);
155 #endif