sh: Migrate necessary libgcc bits in to arch/sh/lib for SUPERH32.
[linux-2.6.git] / 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
56 DECLARE_EXPORT(__lshrsi3);
57 DECLARE_EXPORT(__ashrsi3);
58 DECLARE_EXPORT(__ashlsi3);
59 DECLARE_EXPORT(__ashiftrt_r4_6);
60 DECLARE_EXPORT(__ashiftrt_r4_7);
61 DECLARE_EXPORT(__ashiftrt_r4_8);
62 DECLARE_EXPORT(__ashiftrt_r4_9);
63 DECLARE_EXPORT(__ashiftrt_r4_10);
64 DECLARE_EXPORT(__ashiftrt_r4_11);
65 DECLARE_EXPORT(__ashiftrt_r4_12);
66 DECLARE_EXPORT(__ashiftrt_r4_13);
67 DECLARE_EXPORT(__ashiftrt_r4_14);
68 DECLARE_EXPORT(__ashiftrt_r4_15);
69 DECLARE_EXPORT(__ashiftrt_r4_20);
70 DECLARE_EXPORT(__ashiftrt_r4_21);
71 DECLARE_EXPORT(__ashiftrt_r4_22);
72 DECLARE_EXPORT(__ashiftrt_r4_23);
73 DECLARE_EXPORT(__ashiftrt_r4_24);
74 DECLARE_EXPORT(__ashiftrt_r4_27);
75 DECLARE_EXPORT(__ashiftrt_r4_30);
76 DECLARE_EXPORT(__movstr);
77 DECLARE_EXPORT(__movstrSI8);
78 DECLARE_EXPORT(__movstrSI12);
79 DECLARE_EXPORT(__movstrSI16);
80 DECLARE_EXPORT(__movstrSI20);
81 DECLARE_EXPORT(__movstrSI24);
82 DECLARE_EXPORT(__movstrSI28);
83 DECLARE_EXPORT(__movstrSI32);
84 DECLARE_EXPORT(__movstrSI36);
85 DECLARE_EXPORT(__movstrSI40);
86 DECLARE_EXPORT(__movstrSI44);
87 DECLARE_EXPORT(__movstrSI48);
88 DECLARE_EXPORT(__movstrSI52);
89 DECLARE_EXPORT(__movstrSI56);
90 DECLARE_EXPORT(__movstrSI60);
91 DECLARE_EXPORT(__movstr_i4_even);
92 DECLARE_EXPORT(__movstr_i4_odd);
93 DECLARE_EXPORT(__movstrSI12_i4);
94 DECLARE_EXPORT(__udiv_qrnnd_16);
95 DECLARE_EXPORT(__sdivsi3_i4i);
96 DECLARE_EXPORT(__udivsi3_i4i);
97
98 #if !defined(CONFIG_CACHE_OFF) && (defined(CONFIG_CPU_SH4) || \
99         defined(CONFIG_SH7705_CACHE_32KB))
100 /* needed by some modules */
101 EXPORT_SYMBOL(flush_cache_all);
102 EXPORT_SYMBOL(flush_cache_range);
103 EXPORT_SYMBOL(flush_dcache_page);
104 #endif
105
106 #if !defined(CONFIG_CACHE_OFF) && defined(CONFIG_MMU) && \
107         (defined(CONFIG_CPU_SH4) || defined(CONFIG_SH7705_CACHE_32KB))
108 EXPORT_SYMBOL(clear_user_page);
109 #endif
110
111 #ifdef CONFIG_FUNCTION_TRACER
112 EXPORT_SYMBOL(mcount);
113 #endif
114 EXPORT_SYMBOL(csum_partial);
115 EXPORT_SYMBOL(csum_partial_copy_generic);
116 #ifdef CONFIG_IPV6
117 EXPORT_SYMBOL(csum_ipv6_magic);
118 #endif
119 EXPORT_SYMBOL(clear_page);
120 EXPORT_SYMBOL(copy_page);
121 EXPORT_SYMBOL(__clear_user);
122 EXPORT_SYMBOL(_ebss);
123 EXPORT_SYMBOL(empty_zero_page);
124
125 #ifndef CONFIG_CACHE_OFF
126 EXPORT_SYMBOL(__flush_purge_region);
127 EXPORT_SYMBOL(__flush_wback_region);
128 EXPORT_SYMBOL(__flush_invalidate_region);
129 #endif