1 #include <linux/module.h>
3 #include <linux/user.h>
4 #include <linux/elfcore.h>
5 #include <linux/sched.h>
7 #include <linux/interrupt.h>
8 #include <linux/vmalloc.h>
10 #include <linux/irq.h>
12 #include <asm/semaphore.h>
13 #include <asm/processor.h>
14 #include <asm/uaccess.h>
15 #include <asm/checksum.h>
17 #include <asm/delay.h>
18 #include <asm/tlbflush.h>
19 #include <asm/cacheflush.h>
21 extern int dump_fpu(struct pt_regs *, elf_fpregset_t *);
22 extern struct hw_interrupt_type no_irq_type;
26 /* platform dependent support */
27 EXPORT_SYMBOL(dump_fpu);
28 EXPORT_SYMBOL(kernel_thread);
29 EXPORT_SYMBOL(irq_desc);
30 EXPORT_SYMBOL(no_irq_type);
32 EXPORT_SYMBOL(strlen);
36 EXPORT_SYMBOL(pci_alloc_consistent);
37 EXPORT_SYMBOL(pci_free_consistent);
41 EXPORT_SYMBOL(memchr);
42 EXPORT_SYMBOL(memcpy);
43 EXPORT_SYMBOL(memset);
44 EXPORT_SYMBOL(memmove);
45 EXPORT_SYMBOL(__copy_user);
46 EXPORT_SYMBOL(boot_cpu_data);
49 EXPORT_SYMBOL(get_vm_area);
52 /* semaphore exports */
54 EXPORT_SYMBOL(__down);
55 EXPORT_SYMBOL(__down_interruptible);
56 EXPORT_SYMBOL(__down_trylock);
58 EXPORT_SYMBOL(__udelay);
59 EXPORT_SYMBOL(__ndelay);
60 EXPORT_SYMBOL(__const_udelay);
62 #define DECLARE_EXPORT(name) extern void name(void);EXPORT_SYMBOL(name)
64 /* These symbols are generated by the compiler itself */
65 DECLARE_EXPORT(__udivsi3);
66 DECLARE_EXPORT(__sdivsi3);
67 DECLARE_EXPORT(__ashrsi3);
68 DECLARE_EXPORT(__ashlsi3);
69 DECLARE_EXPORT(__ashrdi3);
70 DECLARE_EXPORT(__ashldi3);
71 DECLARE_EXPORT(__ashiftrt_r4_6);
72 DECLARE_EXPORT(__ashiftrt_r4_7);
73 DECLARE_EXPORT(__ashiftrt_r4_8);
74 DECLARE_EXPORT(__ashiftrt_r4_9);
75 DECLARE_EXPORT(__ashiftrt_r4_10);
76 DECLARE_EXPORT(__ashiftrt_r4_11);
77 DECLARE_EXPORT(__ashiftrt_r4_12);
78 DECLARE_EXPORT(__ashiftrt_r4_13);
79 DECLARE_EXPORT(__ashiftrt_r4_14);
80 DECLARE_EXPORT(__ashiftrt_r4_15);
81 DECLARE_EXPORT(__ashiftrt_r4_20);
82 DECLARE_EXPORT(__ashiftrt_r4_21);
83 DECLARE_EXPORT(__ashiftrt_r4_22);
84 DECLARE_EXPORT(__ashiftrt_r4_23);
85 DECLARE_EXPORT(__ashiftrt_r4_24);
86 DECLARE_EXPORT(__ashiftrt_r4_27);
87 DECLARE_EXPORT(__ashiftrt_r4_30);
88 DECLARE_EXPORT(__lshrsi3);
89 DECLARE_EXPORT(__lshrdi3);
90 DECLARE_EXPORT(__movstrSI8);
91 DECLARE_EXPORT(__movstrSI12);
92 DECLARE_EXPORT(__movstrSI16);
93 DECLARE_EXPORT(__movstrSI20);
94 DECLARE_EXPORT(__movstrSI24);
95 DECLARE_EXPORT(__movstrSI28);
96 DECLARE_EXPORT(__movstrSI32);
97 DECLARE_EXPORT(__movstrSI36);
98 DECLARE_EXPORT(__movstrSI40);
99 DECLARE_EXPORT(__movstrSI44);
100 DECLARE_EXPORT(__movstrSI48);
101 DECLARE_EXPORT(__movstrSI52);
102 DECLARE_EXPORT(__movstrSI56);
103 DECLARE_EXPORT(__movstrSI60);
105 DECLARE_EXPORT(__movmem);
107 DECLARE_EXPORT(__movstr);
110 #ifdef CONFIG_CPU_SH4
112 DECLARE_EXPORT(__movmem_i4_even);
113 DECLARE_EXPORT(__movmem_i4_odd);
114 DECLARE_EXPORT(__movmemSI12_i4);
116 #if (__GNUC_MINOR__ == 2 || defined(__GNUC_STM_RELEASE__))
118 * GCC 4.2 emits these for division, as do GCC 4.1.x versions of the ST
119 * compiler which include backported patches.
121 DECLARE_EXPORT(__sdivsi3_i4i);
122 DECLARE_EXPORT(__udiv_qrnnd_16);
123 DECLARE_EXPORT(__udivsi3_i4i);
126 DECLARE_EXPORT(__movstr_i4_even);
127 DECLARE_EXPORT(__movstr_i4_odd);
128 DECLARE_EXPORT(__movstrSI12_i4);
129 #endif /* __GNUC__ == 4 */
132 #if !defined(CONFIG_CACHE_OFF) && (defined(CONFIG_CPU_SH4) || \
133 defined(CONFIG_SH7705_CACHE_32KB))
134 /* needed by some modules */
135 EXPORT_SYMBOL(flush_cache_all);
136 EXPORT_SYMBOL(flush_cache_range);
137 EXPORT_SYMBOL(flush_dcache_page);
138 EXPORT_SYMBOL(__flush_purge_region);
141 #if !defined(CONFIG_CACHE_OFF) && defined(CONFIG_MMU) && \
142 (defined(CONFIG_CPU_SH4) || defined(CONFIG_SH7705_CACHE_32KB))
143 EXPORT_SYMBOL(clear_user_page);
146 EXPORT_SYMBOL(csum_partial);
147 EXPORT_SYMBOL(csum_partial_copy_generic);
149 EXPORT_SYMBOL(csum_ipv6_magic);
151 EXPORT_SYMBOL(clear_page);
152 EXPORT_SYMBOL(__clear_user);