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