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