armksyms.c 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. /*
  2. * linux/arch/arm/kernel/armksyms.c
  3. *
  4. * Copyright (C) 2000 Russell King
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. #include <linux/module.h>
  11. #include <linux/sched.h>
  12. #include <linux/string.h>
  13. #include <linux/cryptohash.h>
  14. #include <linux/delay.h>
  15. #include <linux/in6.h>
  16. #include <linux/syscalls.h>
  17. #include <linux/uaccess.h>
  18. #include <linux/io.h>
  19. #include <asm/checksum.h>
  20. #include <asm/system.h>
  21. #include <asm/ftrace.h>
  22. /*
  23. * libgcc functions - functions that are used internally by the
  24. * compiler... (prototypes are not correct though, but that
  25. * doesn't really matter since they're not versioned).
  26. */
  27. extern void __ashldi3(void);
  28. extern void __ashrdi3(void);
  29. extern void __divsi3(void);
  30. extern void __lshrdi3(void);
  31. extern void __modsi3(void);
  32. extern void __muldi3(void);
  33. extern void __ucmpdi2(void);
  34. extern void __udivsi3(void);
  35. extern void __umodsi3(void);
  36. extern void __do_div64(void);
  37. extern void __aeabi_idiv(void);
  38. extern void __aeabi_idivmod(void);
  39. extern void __aeabi_lasr(void);
  40. extern void __aeabi_llsl(void);
  41. extern void __aeabi_llsr(void);
  42. extern void __aeabi_lmul(void);
  43. extern void __aeabi_uidiv(void);
  44. extern void __aeabi_uidivmod(void);
  45. extern void __aeabi_ulcmp(void);
  46. extern void fpundefinstr(void);
  47. extern void fp_enter(void);
  48. /*
  49. * This has a special calling convention; it doesn't
  50. * modify any of the usual registers, except for LR.
  51. */
  52. #define EXPORT_CRC_ALIAS(sym) __CRC_SYMBOL(sym, "")
  53. #define EXPORT_SYMBOL_ALIAS(sym,orig) \
  54. EXPORT_CRC_ALIAS(sym) \
  55. static const struct kernel_symbol __ksymtab_##sym \
  56. __used __attribute__((section("__ksymtab"))) = \
  57. { (unsigned long)&orig, #sym };
  58. /*
  59. * floating point math emulator support.
  60. * These symbols will never change their calling convention...
  61. */
  62. EXPORT_SYMBOL_ALIAS(kern_fp_enter,fp_enter);
  63. EXPORT_SYMBOL_ALIAS(fp_printk,printk);
  64. EXPORT_SYMBOL_ALIAS(fp_send_sig,send_sig);
  65. EXPORT_SYMBOL(__backtrace);
  66. /* platform dependent support */
  67. EXPORT_SYMBOL(__udelay);
  68. EXPORT_SYMBOL(__const_udelay);
  69. /* networking */
  70. EXPORT_SYMBOL(csum_partial);
  71. EXPORT_SYMBOL(csum_partial_copy_from_user);
  72. EXPORT_SYMBOL(csum_partial_copy_nocheck);
  73. EXPORT_SYMBOL(__csum_ipv6_magic);
  74. /* io */
  75. #ifndef __raw_readsb
  76. EXPORT_SYMBOL(__raw_readsb);
  77. #endif
  78. #ifndef __raw_readsw
  79. EXPORT_SYMBOL(__raw_readsw);
  80. #endif
  81. #ifndef __raw_readsl
  82. EXPORT_SYMBOL(__raw_readsl);
  83. #endif
  84. #ifndef __raw_writesb
  85. EXPORT_SYMBOL(__raw_writesb);
  86. #endif
  87. #ifndef __raw_writesw
  88. EXPORT_SYMBOL(__raw_writesw);
  89. #endif
  90. #ifndef __raw_writesl
  91. EXPORT_SYMBOL(__raw_writesl);
  92. #endif
  93. /* string / mem functions */
  94. EXPORT_SYMBOL(strchr);
  95. EXPORT_SYMBOL(strrchr);
  96. EXPORT_SYMBOL(memset);
  97. EXPORT_SYMBOL(memcpy);
  98. EXPORT_SYMBOL(memmove);
  99. EXPORT_SYMBOL(memchr);
  100. EXPORT_SYMBOL(__memzero);
  101. /* user mem (segment) */
  102. EXPORT_SYMBOL(__strnlen_user);
  103. EXPORT_SYMBOL(__strncpy_from_user);
  104. #ifdef CONFIG_MMU
  105. EXPORT_SYMBOL(copy_page);
  106. EXPORT_SYMBOL(__copy_from_user);
  107. EXPORT_SYMBOL(__copy_to_user);
  108. EXPORT_SYMBOL(__clear_user);
  109. EXPORT_SYMBOL(__get_user_1);
  110. EXPORT_SYMBOL(__get_user_2);
  111. EXPORT_SYMBOL(__get_user_4);
  112. EXPORT_SYMBOL(__put_user_1);
  113. EXPORT_SYMBOL(__put_user_2);
  114. EXPORT_SYMBOL(__put_user_4);
  115. EXPORT_SYMBOL(__put_user_8);
  116. #endif
  117. /* crypto hash */
  118. EXPORT_SYMBOL(sha_transform);
  119. /* gcc lib functions */
  120. EXPORT_SYMBOL(__ashldi3);
  121. EXPORT_SYMBOL(__ashrdi3);
  122. EXPORT_SYMBOL(__divsi3);
  123. EXPORT_SYMBOL(__lshrdi3);
  124. EXPORT_SYMBOL(__modsi3);
  125. EXPORT_SYMBOL(__muldi3);
  126. EXPORT_SYMBOL(__ucmpdi2);
  127. EXPORT_SYMBOL(__udivsi3);
  128. EXPORT_SYMBOL(__umodsi3);
  129. EXPORT_SYMBOL(__do_div64);
  130. #ifdef CONFIG_AEABI
  131. EXPORT_SYMBOL(__aeabi_idiv);
  132. EXPORT_SYMBOL(__aeabi_idivmod);
  133. EXPORT_SYMBOL(__aeabi_lasr);
  134. EXPORT_SYMBOL(__aeabi_llsl);
  135. EXPORT_SYMBOL(__aeabi_llsr);
  136. EXPORT_SYMBOL(__aeabi_lmul);
  137. EXPORT_SYMBOL(__aeabi_uidiv);
  138. EXPORT_SYMBOL(__aeabi_uidivmod);
  139. EXPORT_SYMBOL(__aeabi_ulcmp);
  140. #endif
  141. /* bitops */
  142. EXPORT_SYMBOL(_set_bit_le);
  143. EXPORT_SYMBOL(_test_and_set_bit_le);
  144. EXPORT_SYMBOL(_clear_bit_le);
  145. EXPORT_SYMBOL(_test_and_clear_bit_le);
  146. EXPORT_SYMBOL(_change_bit_le);
  147. EXPORT_SYMBOL(_test_and_change_bit_le);
  148. EXPORT_SYMBOL(_find_first_zero_bit_le);
  149. EXPORT_SYMBOL(_find_next_zero_bit_le);
  150. EXPORT_SYMBOL(_find_first_bit_le);
  151. EXPORT_SYMBOL(_find_next_bit_le);
  152. #ifdef __ARMEB__
  153. EXPORT_SYMBOL(_set_bit_be);
  154. EXPORT_SYMBOL(_test_and_set_bit_be);
  155. EXPORT_SYMBOL(_clear_bit_be);
  156. EXPORT_SYMBOL(_test_and_clear_bit_be);
  157. EXPORT_SYMBOL(_change_bit_be);
  158. EXPORT_SYMBOL(_test_and_change_bit_be);
  159. EXPORT_SYMBOL(_find_first_zero_bit_be);
  160. EXPORT_SYMBOL(_find_next_zero_bit_be);
  161. EXPORT_SYMBOL(_find_first_bit_be);
  162. EXPORT_SYMBOL(_find_next_bit_be);
  163. #endif
  164. #ifdef CONFIG_FUNCTION_TRACER
  165. EXPORT_SYMBOL(mcount);
  166. #endif