sh_ksyms.c 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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. #include <asm/semaphore.h>
  13. #include <asm/processor.h>
  14. #include <asm/uaccess.h>
  15. #include <asm/checksum.h>
  16. #include <asm/io.h>
  17. #include <asm/delay.h>
  18. #include <asm/tlbflush.h>
  19. #include <asm/cacheflush.h>
  20. extern int dump_fpu(struct pt_regs *, elf_fpregset_t *);
  21. extern struct hw_interrupt_type no_irq_type;
  22. EXPORT_SYMBOL(sh_mv);
  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. EXPORT_SYMBOL(strlen);
  29. /* PCI exports */
  30. #ifdef CONFIG_PCI
  31. EXPORT_SYMBOL(pci_alloc_consistent);
  32. EXPORT_SYMBOL(pci_free_consistent);
  33. #endif
  34. /* mem exports */
  35. EXPORT_SYMBOL(memchr);
  36. EXPORT_SYMBOL(memcpy);
  37. EXPORT_SYMBOL(memset);
  38. EXPORT_SYMBOL(memmove);
  39. EXPORT_SYMBOL(__copy_user);
  40. EXPORT_SYMBOL(boot_cpu_data);
  41. #ifdef CONFIG_MMU
  42. EXPORT_SYMBOL(get_vm_area);
  43. #endif
  44. /* semaphore exports */
  45. EXPORT_SYMBOL(__up);
  46. EXPORT_SYMBOL(__down);
  47. EXPORT_SYMBOL(__down_interruptible);
  48. EXPORT_SYMBOL(__udelay);
  49. EXPORT_SYMBOL(__ndelay);
  50. EXPORT_SYMBOL(__const_udelay);
  51. EXPORT_SYMBOL(__div64_32);
  52. #define DECLARE_EXPORT(name) extern void name(void);EXPORT_SYMBOL(name)
  53. /* These symbols are generated by the compiler itself */
  54. DECLARE_EXPORT(__udivsi3);
  55. DECLARE_EXPORT(__udivdi3);
  56. DECLARE_EXPORT(__sdivsi3);
  57. DECLARE_EXPORT(__ashrdi3);
  58. DECLARE_EXPORT(__ashldi3);
  59. DECLARE_EXPORT(__lshrdi3);
  60. DECLARE_EXPORT(__movstrSI16);
  61. #if __GNUC__ == 4
  62. DECLARE_EXPORT(__movmem);
  63. #else
  64. DECLARE_EXPORT(__movstr);
  65. #endif
  66. #ifdef CONFIG_CPU_SH4
  67. #if __GNUC__ == 4
  68. DECLARE_EXPORT(__movmem_i4_even);
  69. DECLARE_EXPORT(__movmem_i4_odd);
  70. DECLARE_EXPORT(__movmemSI12_i4);
  71. DECLARE_EXPORT(__sdivsi3_i4i);
  72. DECLARE_EXPORT(__udiv_qrnnd_16);
  73. DECLARE_EXPORT(__udivsi3_i4i);
  74. #else /* GCC 3.x */
  75. DECLARE_EXPORT(__movstr_i4_even);
  76. DECLARE_EXPORT(__movstr_i4_odd);
  77. DECLARE_EXPORT(__movstrSI12_i4);
  78. #endif /* __GNUC__ == 4 */
  79. #endif
  80. #if defined(CONFIG_CPU_SH4) || defined(CONFIG_SH7705_CACHE_32KB)
  81. /* needed by some modules */
  82. EXPORT_SYMBOL(flush_cache_all);
  83. EXPORT_SYMBOL(flush_cache_range);
  84. EXPORT_SYMBOL(flush_dcache_page);
  85. EXPORT_SYMBOL(__flush_purge_region);
  86. #endif
  87. #if defined(CONFIG_MMU) && (defined(CONFIG_CPU_SH4) || \
  88. defined(CONFIG_SH7705_CACHE_32KB))
  89. EXPORT_SYMBOL(clear_user_page);
  90. #endif
  91. EXPORT_SYMBOL(flush_tlb_page);
  92. EXPORT_SYMBOL(__down_trylock);
  93. #ifdef CONFIG_SMP
  94. EXPORT_SYMBOL(synchronize_irq);
  95. #endif
  96. EXPORT_SYMBOL(csum_partial);
  97. #ifdef CONFIG_IPV6
  98. EXPORT_SYMBOL(csum_ipv6_magic);
  99. #endif
  100. EXPORT_SYMBOL(clear_page);