armksyms.c 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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/export.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 <linux/arm-smccc.h>
  20. #include <asm/checksum.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 __bswapsi2(void);
  38. extern void __bswapdi2(void);
  39. extern void __aeabi_idiv(void);
  40. extern void __aeabi_idivmod(void);
  41. extern void __aeabi_lasr(void);
  42. extern void __aeabi_llsl(void);
  43. extern void __aeabi_llsr(void);
  44. extern void __aeabi_lmul(void);
  45. extern void __aeabi_uidiv(void);
  46. extern void __aeabi_uidivmod(void);
  47. extern void __aeabi_ulcmp(void);
  48. extern void fpundefinstr(void);
  49. void mmioset(void *, unsigned int, size_t);
  50. void mmiocpy(void *, const void *, size_t);
  51. /* platform dependent support */
  52. EXPORT_SYMBOL(arm_delay_ops);
  53. /* networking */
  54. EXPORT_SYMBOL(csum_partial);
  55. EXPORT_SYMBOL(csum_partial_copy_from_user);
  56. EXPORT_SYMBOL(csum_partial_copy_nocheck);
  57. EXPORT_SYMBOL(__csum_ipv6_magic);
  58. /* io */
  59. #ifndef __raw_readsb
  60. EXPORT_SYMBOL(__raw_readsb);
  61. #endif
  62. #ifndef __raw_readsw
  63. EXPORT_SYMBOL(__raw_readsw);
  64. #endif
  65. #ifndef __raw_readsl
  66. EXPORT_SYMBOL(__raw_readsl);
  67. #endif
  68. #ifndef __raw_writesb
  69. EXPORT_SYMBOL(__raw_writesb);
  70. #endif
  71. #ifndef __raw_writesw
  72. EXPORT_SYMBOL(__raw_writesw);
  73. #endif
  74. #ifndef __raw_writesl
  75. EXPORT_SYMBOL(__raw_writesl);
  76. #endif
  77. /* string / mem functions */
  78. EXPORT_SYMBOL(strchr);
  79. EXPORT_SYMBOL(strrchr);
  80. EXPORT_SYMBOL(memset);
  81. EXPORT_SYMBOL(memcpy);
  82. EXPORT_SYMBOL(memmove);
  83. EXPORT_SYMBOL(memchr);
  84. EXPORT_SYMBOL(__memzero);
  85. EXPORT_SYMBOL(mmioset);
  86. EXPORT_SYMBOL(mmiocpy);
  87. #ifdef CONFIG_MMU
  88. EXPORT_SYMBOL(copy_page);
  89. EXPORT_SYMBOL(arm_copy_from_user);
  90. EXPORT_SYMBOL(arm_copy_to_user);
  91. EXPORT_SYMBOL(arm_clear_user);
  92. EXPORT_SYMBOL(__get_user_1);
  93. EXPORT_SYMBOL(__get_user_2);
  94. EXPORT_SYMBOL(__get_user_4);
  95. EXPORT_SYMBOL(__get_user_8);
  96. #ifdef __ARMEB__
  97. EXPORT_SYMBOL(__get_user_64t_1);
  98. EXPORT_SYMBOL(__get_user_64t_2);
  99. EXPORT_SYMBOL(__get_user_64t_4);
  100. EXPORT_SYMBOL(__get_user_32t_8);
  101. #endif
  102. EXPORT_SYMBOL(__put_user_1);
  103. EXPORT_SYMBOL(__put_user_2);
  104. EXPORT_SYMBOL(__put_user_4);
  105. EXPORT_SYMBOL(__put_user_8);
  106. #endif
  107. /* gcc lib functions */
  108. EXPORT_SYMBOL(__ashldi3);
  109. EXPORT_SYMBOL(__ashrdi3);
  110. EXPORT_SYMBOL(__divsi3);
  111. EXPORT_SYMBOL(__lshrdi3);
  112. EXPORT_SYMBOL(__modsi3);
  113. EXPORT_SYMBOL(__muldi3);
  114. EXPORT_SYMBOL(__ucmpdi2);
  115. EXPORT_SYMBOL(__udivsi3);
  116. EXPORT_SYMBOL(__umodsi3);
  117. EXPORT_SYMBOL(__do_div64);
  118. EXPORT_SYMBOL(__bswapsi2);
  119. EXPORT_SYMBOL(__bswapdi2);
  120. #ifdef CONFIG_AEABI
  121. EXPORT_SYMBOL(__aeabi_idiv);
  122. EXPORT_SYMBOL(__aeabi_idivmod);
  123. EXPORT_SYMBOL(__aeabi_lasr);
  124. EXPORT_SYMBOL(__aeabi_llsl);
  125. EXPORT_SYMBOL(__aeabi_llsr);
  126. EXPORT_SYMBOL(__aeabi_lmul);
  127. EXPORT_SYMBOL(__aeabi_uidiv);
  128. EXPORT_SYMBOL(__aeabi_uidivmod);
  129. EXPORT_SYMBOL(__aeabi_ulcmp);
  130. #endif
  131. /* bitops */
  132. EXPORT_SYMBOL(_set_bit);
  133. EXPORT_SYMBOL(_test_and_set_bit);
  134. EXPORT_SYMBOL(_clear_bit);
  135. EXPORT_SYMBOL(_test_and_clear_bit);
  136. EXPORT_SYMBOL(_change_bit);
  137. EXPORT_SYMBOL(_test_and_change_bit);
  138. EXPORT_SYMBOL(_find_first_zero_bit_le);
  139. EXPORT_SYMBOL(_find_next_zero_bit_le);
  140. EXPORT_SYMBOL(_find_first_bit_le);
  141. EXPORT_SYMBOL(_find_next_bit_le);
  142. #ifdef __ARMEB__
  143. EXPORT_SYMBOL(_find_first_zero_bit_be);
  144. EXPORT_SYMBOL(_find_next_zero_bit_be);
  145. EXPORT_SYMBOL(_find_first_bit_be);
  146. EXPORT_SYMBOL(_find_next_bit_be);
  147. #endif
  148. #ifdef CONFIG_FUNCTION_TRACER
  149. #ifdef CONFIG_OLD_MCOUNT
  150. EXPORT_SYMBOL(mcount);
  151. #endif
  152. EXPORT_SYMBOL(__gnu_mcount_nc);
  153. #endif
  154. #ifdef CONFIG_ARM_PATCH_PHYS_VIRT
  155. EXPORT_SYMBOL(__pv_phys_pfn_offset);
  156. EXPORT_SYMBOL(__pv_offset);
  157. #endif
  158. #ifdef CONFIG_HAVE_ARM_SMCCC
  159. EXPORT_SYMBOL(__arm_smccc_smc);
  160. EXPORT_SYMBOL(__arm_smccc_hvc);
  161. #endif