14b7be4f2SPaul Mundt #include <linux/module.h> 24b7be4f2SPaul Mundt #include <linux/smp.h> 34b7be4f2SPaul Mundt #include <linux/user.h> 44b7be4f2SPaul Mundt #include <linux/elfcore.h> 54b7be4f2SPaul Mundt #include <linux/sched.h> 64b7be4f2SPaul Mundt #include <linux/in6.h> 74b7be4f2SPaul Mundt #include <linux/interrupt.h> 84b7be4f2SPaul Mundt #include <linux/vmalloc.h> 94b7be4f2SPaul Mundt #include <linux/pci.h> 104b7be4f2SPaul Mundt #include <linux/irq.h> 114b7be4f2SPaul Mundt #include <asm/sections.h> 124b7be4f2SPaul Mundt #include <asm/processor.h> 134b7be4f2SPaul Mundt #include <asm/uaccess.h> 144b7be4f2SPaul Mundt #include <asm/checksum.h> 154b7be4f2SPaul Mundt #include <asm/io.h> 164b7be4f2SPaul Mundt #include <asm/delay.h> 174b7be4f2SPaul Mundt #include <asm/tlbflush.h> 184b7be4f2SPaul Mundt #include <asm/cacheflush.h> 199d2b1f81SPaul Mundt #include <asm/ftrace.h> 204b7be4f2SPaul Mundt 214b7be4f2SPaul Mundt extern int dump_fpu(struct pt_regs *, elf_fpregset_t *); 224b7be4f2SPaul Mundt 234b7be4f2SPaul Mundt /* platform dependent support */ 244b7be4f2SPaul Mundt EXPORT_SYMBOL(dump_fpu); 254b7be4f2SPaul Mundt EXPORT_SYMBOL(kernel_thread); 264b7be4f2SPaul Mundt EXPORT_SYMBOL(strlen); 274b7be4f2SPaul Mundt 284b7be4f2SPaul Mundt /* PCI exports */ 294b7be4f2SPaul Mundt #ifdef CONFIG_PCI 304b7be4f2SPaul Mundt EXPORT_SYMBOL(pci_alloc_consistent); 314b7be4f2SPaul Mundt EXPORT_SYMBOL(pci_free_consistent); 324b7be4f2SPaul Mundt #endif 334b7be4f2SPaul Mundt 344b7be4f2SPaul Mundt /* mem exports */ 354b7be4f2SPaul Mundt EXPORT_SYMBOL(memchr); 364b7be4f2SPaul Mundt EXPORT_SYMBOL(memcpy); 374b7be4f2SPaul Mundt EXPORT_SYMBOL(memset); 384b7be4f2SPaul Mundt EXPORT_SYMBOL(memmove); 394b7be4f2SPaul Mundt EXPORT_SYMBOL(__copy_user); 404b7be4f2SPaul Mundt EXPORT_SYMBOL(__udelay); 414b7be4f2SPaul Mundt EXPORT_SYMBOL(__ndelay); 424b7be4f2SPaul Mundt EXPORT_SYMBOL(__const_udelay); 434b7be4f2SPaul Mundt 448a2fd5f3SPaul Mundt #define DECLARE_EXPORT(name) \ 458a2fd5f3SPaul Mundt extern void name(void);EXPORT_SYMBOL(name) 464b7be4f2SPaul Mundt 479ef10028SPaul Mundt DECLARE_EXPORT(__udivsi3); 489ef10028SPaul Mundt DECLARE_EXPORT(__sdivsi3); 491aad54a9SPaul Mundt DECLARE_EXPORT(__lshrsi3); 504b7be4f2SPaul Mundt DECLARE_EXPORT(__ashrsi3); 514b7be4f2SPaul Mundt DECLARE_EXPORT(__ashlsi3); 524b7be4f2SPaul Mundt DECLARE_EXPORT(__ashiftrt_r4_6); 534b7be4f2SPaul Mundt DECLARE_EXPORT(__ashiftrt_r4_7); 544b7be4f2SPaul Mundt DECLARE_EXPORT(__ashiftrt_r4_8); 554b7be4f2SPaul Mundt DECLARE_EXPORT(__ashiftrt_r4_9); 564b7be4f2SPaul Mundt DECLARE_EXPORT(__ashiftrt_r4_10); 574b7be4f2SPaul Mundt DECLARE_EXPORT(__ashiftrt_r4_11); 584b7be4f2SPaul Mundt DECLARE_EXPORT(__ashiftrt_r4_12); 594b7be4f2SPaul Mundt DECLARE_EXPORT(__ashiftrt_r4_13); 604b7be4f2SPaul Mundt DECLARE_EXPORT(__ashiftrt_r4_14); 614b7be4f2SPaul Mundt DECLARE_EXPORT(__ashiftrt_r4_15); 624b7be4f2SPaul Mundt DECLARE_EXPORT(__ashiftrt_r4_20); 634b7be4f2SPaul Mundt DECLARE_EXPORT(__ashiftrt_r4_21); 644b7be4f2SPaul Mundt DECLARE_EXPORT(__ashiftrt_r4_22); 654b7be4f2SPaul Mundt DECLARE_EXPORT(__ashiftrt_r4_23); 664b7be4f2SPaul Mundt DECLARE_EXPORT(__ashiftrt_r4_24); 674b7be4f2SPaul Mundt DECLARE_EXPORT(__ashiftrt_r4_27); 684b7be4f2SPaul Mundt DECLARE_EXPORT(__ashiftrt_r4_30); 691aad54a9SPaul Mundt DECLARE_EXPORT(__movstr); 704b7be4f2SPaul Mundt DECLARE_EXPORT(__movstrSI8); 714b7be4f2SPaul Mundt DECLARE_EXPORT(__movstrSI12); 724b7be4f2SPaul Mundt DECLARE_EXPORT(__movstrSI16); 734b7be4f2SPaul Mundt DECLARE_EXPORT(__movstrSI20); 744b7be4f2SPaul Mundt DECLARE_EXPORT(__movstrSI24); 754b7be4f2SPaul Mundt DECLARE_EXPORT(__movstrSI28); 764b7be4f2SPaul Mundt DECLARE_EXPORT(__movstrSI32); 774b7be4f2SPaul Mundt DECLARE_EXPORT(__movstrSI36); 784b7be4f2SPaul Mundt DECLARE_EXPORT(__movstrSI40); 794b7be4f2SPaul Mundt DECLARE_EXPORT(__movstrSI44); 804b7be4f2SPaul Mundt DECLARE_EXPORT(__movstrSI48); 814b7be4f2SPaul Mundt DECLARE_EXPORT(__movstrSI52); 824b7be4f2SPaul Mundt DECLARE_EXPORT(__movstrSI56); 834b7be4f2SPaul Mundt DECLARE_EXPORT(__movstrSI60); 844b7be4f2SPaul Mundt DECLARE_EXPORT(__movstr_i4_even); 854b7be4f2SPaul Mundt DECLARE_EXPORT(__movstr_i4_odd); 864b7be4f2SPaul Mundt DECLARE_EXPORT(__movstrSI12_i4); 87*f16bf3e2SLubomir Rintel DECLARE_EXPORT(__movmem); 88624c6a67SPaul Mundt DECLARE_EXPORT(__movmem_i4_even); 89624c6a67SPaul Mundt DECLARE_EXPORT(__movmem_i4_odd); 90624c6a67SPaul Mundt DECLARE_EXPORT(__movmemSI12_i4); 911aad54a9SPaul Mundt DECLARE_EXPORT(__udiv_qrnnd_16); 929ef10028SPaul Mundt DECLARE_EXPORT(__sdivsi3_i4); 939ef10028SPaul Mundt DECLARE_EXPORT(__udivsi3_i4); 941aad54a9SPaul Mundt DECLARE_EXPORT(__sdivsi3_i4i); 951aad54a9SPaul Mundt DECLARE_EXPORT(__udivsi3_i4i); 964b7be4f2SPaul Mundt 974b7be4f2SPaul Mundt #if !defined(CONFIG_CACHE_OFF) && (defined(CONFIG_CPU_SH4) || \ 984b7be4f2SPaul Mundt defined(CONFIG_SH7705_CACHE_32KB)) 994b7be4f2SPaul Mundt /* needed by some modules */ 1004b7be4f2SPaul Mundt EXPORT_SYMBOL(flush_cache_all); 1014b7be4f2SPaul Mundt EXPORT_SYMBOL(flush_cache_range); 1024b7be4f2SPaul Mundt EXPORT_SYMBOL(flush_dcache_page); 1034b7be4f2SPaul Mundt #endif 1044b7be4f2SPaul Mundt 105473d1cf4SPaul Mundt #ifdef CONFIG_MCOUNT 106fe279320SPaul Mundt DECLARE_EXPORT(mcount); 1079d2b1f81SPaul Mundt #endif 1084b7be4f2SPaul Mundt EXPORT_SYMBOL(csum_partial); 1094b7be4f2SPaul Mundt EXPORT_SYMBOL(csum_partial_copy_generic); 1104b7be4f2SPaul Mundt #ifdef CONFIG_IPV6 1114b7be4f2SPaul Mundt EXPORT_SYMBOL(csum_ipv6_magic); 1124b7be4f2SPaul Mundt #endif 113ad0caae0SAndrew Morton EXPORT_SYMBOL(copy_page); 1144b7be4f2SPaul Mundt EXPORT_SYMBOL(__clear_user); 1154b7be4f2SPaul Mundt EXPORT_SYMBOL(_ebss); 116fd785d6bSAndrew Morton EXPORT_SYMBOL(empty_zero_page); 1172bba37e6SPaul Mundt 1182bba37e6SPaul Mundt #ifndef CONFIG_CACHE_OFF 1192bba37e6SPaul Mundt EXPORT_SYMBOL(__flush_purge_region); 1202bba37e6SPaul Mundt EXPORT_SYMBOL(__flush_wback_region); 1212bba37e6SPaul Mundt EXPORT_SYMBOL(__flush_invalidate_region); 1222bba37e6SPaul Mundt #endif 123