sh_ksyms.c 2.5 KB

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