Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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/smp_lock.h> |
| 9 | #include <linux/vmalloc.h> |
| 10 | #include <linux/pci.h> |
| 11 | #include <linux/irq.h> |
| 12 | |
| 13 | #include <asm/semaphore.h> |
| 14 | #include <asm/processor.h> |
| 15 | #include <asm/uaccess.h> |
| 16 | #include <asm/checksum.h> |
| 17 | #include <asm/io.h> |
| 18 | #include <asm/delay.h> |
| 19 | #include <asm/tlbflush.h> |
| 20 | #include <asm/cacheflush.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 21 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 22 | extern int dump_fpu(struct pt_regs *, elf_fpregset_t *); |
| 23 | extern struct hw_interrupt_type no_irq_type; |
| 24 | |
| 25 | EXPORT_SYMBOL(sh_mv); |
| 26 | |
| 27 | /* platform dependent support */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 28 | EXPORT_SYMBOL(dump_fpu); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 29 | EXPORT_SYMBOL(kernel_thread); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 30 | EXPORT_SYMBOL(irq_desc); |
| 31 | EXPORT_SYMBOL(no_irq_type); |
| 32 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 33 | EXPORT_SYMBOL(strlen); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 34 | |
| 35 | /* PCI exports */ |
| 36 | #ifdef CONFIG_PCI |
| 37 | EXPORT_SYMBOL(pci_alloc_consistent); |
| 38 | EXPORT_SYMBOL(pci_free_consistent); |
| 39 | #endif |
| 40 | |
| 41 | /* mem exports */ |
| 42 | EXPORT_SYMBOL(memchr); |
| 43 | EXPORT_SYMBOL(memcpy); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 44 | EXPORT_SYMBOL(memset); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 45 | EXPORT_SYMBOL(memmove); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 46 | EXPORT_SYMBOL(__copy_user); |
| 47 | EXPORT_SYMBOL(boot_cpu_data); |
| 48 | |
| 49 | #ifdef CONFIG_MMU |
| 50 | EXPORT_SYMBOL(get_vm_area); |
| 51 | #endif |
| 52 | |
| 53 | /* semaphore exports */ |
| 54 | EXPORT_SYMBOL(__up); |
| 55 | EXPORT_SYMBOL(__down); |
| 56 | EXPORT_SYMBOL(__down_interruptible); |
| 57 | |
| 58 | EXPORT_SYMBOL(__udelay); |
| 59 | EXPORT_SYMBOL(__ndelay); |
| 60 | EXPORT_SYMBOL(__const_udelay); |
| 61 | |
| 62 | EXPORT_SYMBOL(__div64_32); |
| 63 | |
| 64 | #define DECLARE_EXPORT(name) extern void name(void);EXPORT_SYMBOL(name) |
| 65 | |
| 66 | /* These symbols are generated by the compiler itself */ |
| 67 | DECLARE_EXPORT(__udivsi3); |
| 68 | DECLARE_EXPORT(__udivdi3); |
| 69 | DECLARE_EXPORT(__sdivsi3); |
| 70 | DECLARE_EXPORT(__ashrdi3); |
| 71 | DECLARE_EXPORT(__ashldi3); |
| 72 | DECLARE_EXPORT(__lshrdi3); |
Paul Mundt | 711fa80 | 2006-10-03 13:14:04 +0900 | [diff] [blame] | 73 | DECLARE_EXPORT(__movstrSI16); |
Stuart Menefy | ff4e2ca7 | 2006-12-07 17:48:52 +0900 | [diff] [blame] | 74 | #if __GNUC__ == 4 |
| 75 | DECLARE_EXPORT(__movmem); |
| 76 | #else |
| 77 | DECLARE_EXPORT(__movstr); |
| 78 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 79 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 80 | #ifdef CONFIG_CPU_SH4 |
Stuart Menefy | ff4e2ca7 | 2006-12-07 17:48:52 +0900 | [diff] [blame] | 81 | #if __GNUC__ == 4 |
| 82 | DECLARE_EXPORT(__movmem_i4_even); |
| 83 | DECLARE_EXPORT(__movmem_i4_odd); |
| 84 | DECLARE_EXPORT(__movmemSI12_i4); |
| 85 | DECLARE_EXPORT(__sdivsi3_i4i); |
| 86 | DECLARE_EXPORT(__udiv_qrnnd_16); |
| 87 | DECLARE_EXPORT(__udivsi3_i4i); |
| 88 | #else /* GCC 3.x */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 89 | DECLARE_EXPORT(__movstr_i4_even); |
| 90 | DECLARE_EXPORT(__movstr_i4_odd); |
| 91 | DECLARE_EXPORT(__movstrSI12_i4); |
Stuart Menefy | ff4e2ca7 | 2006-12-07 17:48:52 +0900 | [diff] [blame] | 92 | #endif /* __GNUC__ == 4 */ |
Yoshinori Sato | a2d1a5f | 2006-09-27 17:25:07 +0900 | [diff] [blame] | 93 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 94 | |
Yoshinori Sato | a2d1a5f | 2006-09-27 17:25:07 +0900 | [diff] [blame] | 95 | #if defined(CONFIG_CPU_SH4) || defined(CONFIG_SH7705_CACHE_32KB) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 96 | /* needed by some modules */ |
| 97 | EXPORT_SYMBOL(flush_cache_all); |
| 98 | EXPORT_SYMBOL(flush_cache_range); |
| 99 | EXPORT_SYMBOL(flush_dcache_page); |
| 100 | EXPORT_SYMBOL(__flush_purge_region); |
| 101 | #endif |
| 102 | |
Paul Mundt | e5723e0 | 2006-09-27 17:38:11 +0900 | [diff] [blame] | 103 | #if defined(CONFIG_MMU) && (defined(CONFIG_CPU_SH4) || \ |
| 104 | defined(CONFIG_SH7705_CACHE_32KB)) |
Yoshinori Sato | a2d1a5f | 2006-09-27 17:25:07 +0900 | [diff] [blame] | 105 | EXPORT_SYMBOL(clear_user_page); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 106 | #endif |
| 107 | |
| 108 | EXPORT_SYMBOL(flush_tlb_page); |
| 109 | EXPORT_SYMBOL(__down_trylock); |
| 110 | |
| 111 | #ifdef CONFIG_SMP |
| 112 | EXPORT_SYMBOL(synchronize_irq); |
| 113 | #endif |
| 114 | |
| 115 | EXPORT_SYMBOL(csum_partial); |
Paul Mundt | e4c2cfe | 2006-09-27 12:31:01 +0900 | [diff] [blame] | 116 | #ifdef CONFIG_IPV6 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 117 | EXPORT_SYMBOL(csum_ipv6_magic); |
Paul Mundt | e4c2cfe | 2006-09-27 12:31:01 +0900 | [diff] [blame] | 118 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 119 | EXPORT_SYMBOL(clear_page); |