ksyms.c 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. /*
  2. * Export of symbols defined in assembler
  3. */
  4. /* Tell string.h we don't want memcpy etc. as cpp defines */
  5. #define EXPORT_SYMTAB_STROPS
  6. #include <linux/module.h>
  7. #include <linux/string.h>
  8. #include <linux/types.h>
  9. #include <asm/checksum.h>
  10. #include <asm/uaccess.h>
  11. #include <asm/ftrace.h>
  12. /* string functions */
  13. EXPORT_SYMBOL(strlen);
  14. EXPORT_SYMBOL(__strlen_user);
  15. EXPORT_SYMBOL(__strnlen_user);
  16. EXPORT_SYMBOL(strncmp);
  17. /* mem* functions */
  18. extern void *__memscan_zero(void *, size_t);
  19. extern void *__memscan_generic(void *, int, size_t);
  20. extern void *__bzero(void *, size_t);
  21. EXPORT_SYMBOL(memscan);
  22. EXPORT_SYMBOL(__memscan_zero);
  23. EXPORT_SYMBOL(__memscan_generic);
  24. EXPORT_SYMBOL(memcmp);
  25. EXPORT_SYMBOL(memcpy);
  26. EXPORT_SYMBOL(memset);
  27. EXPORT_SYMBOL(memmove);
  28. EXPORT_SYMBOL(__bzero);
  29. /* Moving data to/from/in userspace. */
  30. EXPORT_SYMBOL(__strncpy_from_user);
  31. /* Networking helper routines. */
  32. EXPORT_SYMBOL(csum_partial);
  33. #ifdef CONFIG_MCOUNT
  34. EXPORT_SYMBOL(_mcount);
  35. #endif
  36. /*
  37. * sparc
  38. */
  39. #ifdef CONFIG_SPARC32
  40. extern int __ashrdi3(int, int);
  41. extern int __ashldi3(int, int);
  42. extern int __lshrdi3(int, int);
  43. extern int __muldi3(int, int);
  44. extern int __divdi3(int, int);
  45. extern void (*__copy_1page)(void *, const void *);
  46. extern void (*bzero_1page)(void *);
  47. extern int __strncmp(const char *, const char *, __kernel_size_t);
  48. extern void ___rw_read_enter(void);
  49. extern void ___rw_read_try(void);
  50. extern void ___rw_read_exit(void);
  51. extern void ___rw_write_enter(void);
  52. /* Alias functions whose names begin with "." and export the aliases.
  53. * The module references will be fixed up by module_frob_arch_sections.
  54. */
  55. extern int _Div(int, int);
  56. extern int _Mul(int, int);
  57. extern int _Rem(int, int);
  58. extern unsigned _Udiv(unsigned, unsigned);
  59. extern unsigned _Umul(unsigned, unsigned);
  60. extern unsigned _Urem(unsigned, unsigned);
  61. /* Networking helper routines. */
  62. EXPORT_SYMBOL(__csum_partial_copy_sparc_generic);
  63. /* Special internal versions of library functions. */
  64. EXPORT_SYMBOL(__copy_1page);
  65. EXPORT_SYMBOL(__memmove);
  66. EXPORT_SYMBOL(bzero_1page);
  67. /* string functions */
  68. EXPORT_SYMBOL(__strncmp);
  69. /* Moving data to/from/in userspace. */
  70. EXPORT_SYMBOL(__copy_user);
  71. /* Used by asm/spinlock.h */
  72. #ifdef CONFIG_SMP
  73. EXPORT_SYMBOL(___rw_read_enter);
  74. EXPORT_SYMBOL(___rw_read_try);
  75. EXPORT_SYMBOL(___rw_read_exit);
  76. EXPORT_SYMBOL(___rw_write_enter);
  77. #endif
  78. EXPORT_SYMBOL(__ashrdi3);
  79. EXPORT_SYMBOL(__ashldi3);
  80. EXPORT_SYMBOL(__lshrdi3);
  81. EXPORT_SYMBOL(__muldi3);
  82. EXPORT_SYMBOL(__divdi3);
  83. EXPORT_SYMBOL(_Rem);
  84. EXPORT_SYMBOL(_Urem);
  85. EXPORT_SYMBOL(_Mul);
  86. EXPORT_SYMBOL(_Umul);
  87. EXPORT_SYMBOL(_Div);
  88. EXPORT_SYMBOL(_Udiv);
  89. #endif
  90. /*
  91. * sparc64
  92. */
  93. #ifdef CONFIG_SPARC64
  94. /* Networking helper routines. */
  95. EXPORT_SYMBOL(csum_partial_copy_nocheck);
  96. EXPORT_SYMBOL(__csum_partial_copy_from_user);
  97. EXPORT_SYMBOL(__csum_partial_copy_to_user);
  98. EXPORT_SYMBOL(ip_fast_csum);
  99. /* Moving data to/from/in userspace. */
  100. EXPORT_SYMBOL(___copy_to_user);
  101. EXPORT_SYMBOL(___copy_from_user);
  102. EXPORT_SYMBOL(___copy_in_user);
  103. EXPORT_SYMBOL(__clear_user);
  104. /* Atomic counter implementation. */
  105. EXPORT_SYMBOL(atomic_add);
  106. EXPORT_SYMBOL(atomic_add_ret);
  107. EXPORT_SYMBOL(atomic_sub);
  108. EXPORT_SYMBOL(atomic_sub_ret);
  109. EXPORT_SYMBOL(atomic64_add);
  110. EXPORT_SYMBOL(atomic64_add_ret);
  111. EXPORT_SYMBOL(atomic64_sub);
  112. EXPORT_SYMBOL(atomic64_sub_ret);
  113. /* Atomic bit operations. */
  114. EXPORT_SYMBOL(test_and_set_bit);
  115. EXPORT_SYMBOL(test_and_clear_bit);
  116. EXPORT_SYMBOL(test_and_change_bit);
  117. EXPORT_SYMBOL(set_bit);
  118. EXPORT_SYMBOL(clear_bit);
  119. EXPORT_SYMBOL(change_bit);
  120. /* Special internal versions of library functions. */
  121. EXPORT_SYMBOL(_clear_page);
  122. EXPORT_SYMBOL(clear_user_page);
  123. EXPORT_SYMBOL(copy_user_page);
  124. /* RAID code needs this */
  125. void VISenter(void);
  126. EXPORT_SYMBOL(VISenter);
  127. extern void xor_vis_2(unsigned long, unsigned long *, unsigned long *);
  128. extern void xor_vis_3(unsigned long, unsigned long *, unsigned long *,
  129. unsigned long *);
  130. extern void xor_vis_4(unsigned long, unsigned long *, unsigned long *,
  131. unsigned long *, unsigned long *);
  132. extern void xor_vis_5(unsigned long, unsigned long *, unsigned long *,
  133. unsigned long *, unsigned long *, unsigned long *);
  134. EXPORT_SYMBOL(xor_vis_2);
  135. EXPORT_SYMBOL(xor_vis_3);
  136. EXPORT_SYMBOL(xor_vis_4);
  137. EXPORT_SYMBOL(xor_vis_5);
  138. extern void xor_niagara_2(unsigned long, unsigned long *, unsigned long *);
  139. extern void xor_niagara_3(unsigned long, unsigned long *, unsigned long *,
  140. unsigned long *);
  141. extern void xor_niagara_4(unsigned long, unsigned long *, unsigned long *,
  142. unsigned long *, unsigned long *);
  143. extern void xor_niagara_5(unsigned long, unsigned long *, unsigned long *,
  144. unsigned long *, unsigned long *, unsigned long *);
  145. EXPORT_SYMBOL(xor_niagara_2);
  146. EXPORT_SYMBOL(xor_niagara_3);
  147. EXPORT_SYMBOL(xor_niagara_4);
  148. EXPORT_SYMBOL(xor_niagara_5);
  149. #endif