armksyms.c 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. /*
  2. * linux/arch/arm26/kernel/armksyms.c
  3. *
  4. * Copyright (C) 2003 Ian Molton
  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/module.h>
  12. #include <linux/user.h>
  13. #include <linux/string.h>
  14. #include <linux/fs.h>
  15. #include <linux/mm.h>
  16. #include <linux/mman.h>
  17. #include <linux/delay.h>
  18. #include <linux/in6.h>
  19. #include <linux/interrupt.h>
  20. #include <linux/pm.h>
  21. #include <linux/tty.h>
  22. #include <linux/vt_kern.h>
  23. #include <linux/smp_lock.h>
  24. #include <linux/syscalls.h>
  25. #include <asm/byteorder.h>
  26. #include <asm/elf.h>
  27. #include <asm/io.h>
  28. #include <asm/irq.h>
  29. #include <asm/processor.h>
  30. #include <asm/semaphore.h>
  31. #include <asm/system.h>
  32. #include <asm/uaccess.h>
  33. #include <asm/checksum.h>
  34. #include <asm/mach-types.h>
  35. extern int dump_fpu(struct pt_regs *, struct user_fp_struct *);
  36. extern void inswb(unsigned int port, void *to, int len);
  37. extern void outswb(unsigned int port, const void *to, int len);
  38. extern void __bad_xchg(volatile void *ptr, int size);
  39. /*
  40. * libgcc functions - functions that are used internally by the
  41. * compiler... (prototypes are not correct though, but that
  42. * doesn't really matter since they're not versioned).
  43. */
  44. extern void __ashldi3(void);
  45. extern void __ashrdi3(void);
  46. extern void __divsi3(void);
  47. extern void __lshrdi3(void);
  48. extern void __modsi3(void);
  49. extern void __muldi3(void);
  50. extern void __ucmpdi2(void);
  51. extern void __udivdi3(void);
  52. extern void __umoddi3(void);
  53. extern void __udivmoddi4(void);
  54. extern void __udivsi3(void);
  55. extern void __umodsi3(void);
  56. extern void abort(void);
  57. extern void ret_from_exception(void);
  58. extern void fpundefinstr(void);
  59. extern void fp_enter(void);
  60. /*
  61. * This has a special calling convention; it doesn't
  62. * modify any of the usual registers, except for LR.
  63. * FIXME - we used to use our own local version - looks to be in kernel/softirq now
  64. */
  65. //extern void __do_softirq(void);
  66. #define EXPORT_SYMBOL_ALIAS(sym,orig) \
  67. const char __kstrtab_##sym[] \
  68. __attribute__((section(".kstrtab"))) = \
  69. __MODULE_STRING(sym); \
  70. const struct module_symbol __ksymtab_##sym \
  71. __attribute__((section("__ksymtab"))) = \
  72. { (unsigned long)&orig, __kstrtab_##sym };
  73. /*
  74. * floating point math emulator support.
  75. * These symbols will never change their calling convention...
  76. */
  77. EXPORT_SYMBOL_ALIAS(kern_fp_enter,fp_enter);
  78. EXPORT_SYMBOL_ALIAS(fp_printk,printk);
  79. EXPORT_SYMBOL_ALIAS(fp_send_sig,send_sig);
  80. EXPORT_SYMBOL(fpundefinstr);
  81. EXPORT_SYMBOL(ret_from_exception);
  82. #ifdef CONFIG_VT
  83. EXPORT_SYMBOL(kd_mksound);
  84. #endif
  85. //EXPORT_SYMBOL(__do_softirq);
  86. /* platform dependent support */
  87. EXPORT_SYMBOL(dump_thread);
  88. EXPORT_SYMBOL(dump_fpu);
  89. EXPORT_SYMBOL(udelay);
  90. EXPORT_SYMBOL(kernel_thread);
  91. EXPORT_SYMBOL(system_rev);
  92. EXPORT_SYMBOL(system_serial_low);
  93. EXPORT_SYMBOL(system_serial_high);
  94. #ifdef CONFIG_DEBUG_BUGVERBOSE
  95. EXPORT_SYMBOL(__bug);
  96. #endif
  97. EXPORT_SYMBOL(__bad_xchg);
  98. EXPORT_SYMBOL(__readwrite_bug);
  99. EXPORT_SYMBOL(enable_irq);
  100. EXPORT_SYMBOL(disable_irq);
  101. EXPORT_SYMBOL(set_irq_type);
  102. EXPORT_SYMBOL(pm_idle);
  103. EXPORT_SYMBOL(pm_power_off);
  104. /* processor dependencies */
  105. EXPORT_SYMBOL(__machine_arch_type);
  106. /* networking */
  107. EXPORT_SYMBOL(csum_partial_copy_nocheck);
  108. EXPORT_SYMBOL(__csum_ipv6_magic);
  109. /* io */
  110. #ifndef __raw_readsb
  111. EXPORT_SYMBOL(__raw_readsb);
  112. #endif
  113. #ifndef __raw_readsw
  114. EXPORT_SYMBOL(__raw_readsw);
  115. #endif
  116. #ifndef __raw_readsl
  117. EXPORT_SYMBOL(__raw_readsl);
  118. #endif
  119. #ifndef __raw_writesb
  120. EXPORT_SYMBOL(__raw_writesb);
  121. #endif
  122. #ifndef __raw_writesw
  123. EXPORT_SYMBOL(__raw_writesw);
  124. #endif
  125. #ifndef __raw_writesl
  126. EXPORT_SYMBOL(__raw_writesl);
  127. #endif
  128. /* string / mem functions */
  129. EXPORT_SYMBOL(strcpy);
  130. EXPORT_SYMBOL(strncpy);
  131. EXPORT_SYMBOL(strcat);
  132. EXPORT_SYMBOL(strncat);
  133. EXPORT_SYMBOL(strcmp);
  134. EXPORT_SYMBOL(strncmp);
  135. EXPORT_SYMBOL(strchr);
  136. EXPORT_SYMBOL(strlen);
  137. EXPORT_SYMBOL(strnlen);
  138. EXPORT_SYMBOL(strrchr);
  139. EXPORT_SYMBOL(strstr);
  140. EXPORT_SYMBOL(memset);
  141. EXPORT_SYMBOL(memcpy);
  142. EXPORT_SYMBOL(memmove);
  143. EXPORT_SYMBOL(memcmp);
  144. EXPORT_SYMBOL(memscan);
  145. EXPORT_SYMBOL(__memzero);
  146. /* user mem (segment) */
  147. EXPORT_SYMBOL(uaccess_kernel);
  148. EXPORT_SYMBOL(uaccess_user);
  149. EXPORT_SYMBOL(__get_user_1);
  150. EXPORT_SYMBOL(__get_user_2);
  151. EXPORT_SYMBOL(__get_user_4);
  152. EXPORT_SYMBOL(__get_user_8);
  153. EXPORT_SYMBOL(__put_user_1);
  154. EXPORT_SYMBOL(__put_user_2);
  155. EXPORT_SYMBOL(__put_user_4);
  156. EXPORT_SYMBOL(__put_user_8);
  157. /* gcc lib functions */
  158. EXPORT_SYMBOL(__ashldi3);
  159. EXPORT_SYMBOL(__ashrdi3);
  160. EXPORT_SYMBOL(__divsi3);
  161. EXPORT_SYMBOL(__lshrdi3);
  162. EXPORT_SYMBOL(__modsi3);
  163. EXPORT_SYMBOL(__muldi3);
  164. EXPORT_SYMBOL(__ucmpdi2);
  165. EXPORT_SYMBOL(__udivdi3);
  166. EXPORT_SYMBOL(__umoddi3);
  167. EXPORT_SYMBOL(__udivmoddi4);
  168. EXPORT_SYMBOL(__udivsi3);
  169. EXPORT_SYMBOL(__umodsi3);
  170. /* bitops */
  171. EXPORT_SYMBOL(_set_bit_le);
  172. EXPORT_SYMBOL(_test_and_set_bit_le);
  173. EXPORT_SYMBOL(_clear_bit_le);
  174. EXPORT_SYMBOL(_test_and_clear_bit_le);
  175. EXPORT_SYMBOL(_change_bit_le);
  176. EXPORT_SYMBOL(_test_and_change_bit_le);
  177. EXPORT_SYMBOL(_find_first_zero_bit_le);
  178. EXPORT_SYMBOL(_find_next_zero_bit_le);
  179. /* elf */
  180. EXPORT_SYMBOL(elf_platform);
  181. EXPORT_SYMBOL(elf_hwcap);
  182. #ifdef CONFIG_PREEMPT
  183. EXPORT_SYMBOL(kernel_flag);
  184. #endif