sh_ksyms_32.c 4.0 KB

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