bfin_ksyms.c 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. /*
  2. * arch/blackfin/kernel/bfin_ksyms.c - exports for random symbols
  3. *
  4. * Copyright 2004-2008 Analog Devices Inc.
  5. *
  6. * Licensed under the GPL-2 or later.
  7. */
  8. #include <linux/module.h>
  9. #include <linux/uaccess.h>
  10. #include <asm/cacheflush.h>
  11. #include <asm/io.h>
  12. #include <asm/irq_handler.h>
  13. /* Allow people to have their own Blackfin exception handler in a module */
  14. EXPORT_SYMBOL(bfin_return_from_exception);
  15. /* All the Blackfin cache functions: mach-common/cache.S */
  16. EXPORT_SYMBOL(blackfin_dcache_invalidate_range);
  17. EXPORT_SYMBOL(blackfin_icache_flush_range);
  18. EXPORT_SYMBOL(blackfin_dcache_flush_range);
  19. EXPORT_SYMBOL(blackfin_dflush_page);
  20. /* The following are special because they're not called
  21. * explicitly (the C compiler generates them). Fortunately,
  22. * their interface isn't gonna change any time soon now, so
  23. * it's OK to leave it out of version control.
  24. */
  25. EXPORT_SYMBOL(memcpy);
  26. EXPORT_SYMBOL(memset);
  27. EXPORT_SYMBOL(memcmp);
  28. EXPORT_SYMBOL(memmove);
  29. EXPORT_SYMBOL(memchr);
  30. /*
  31. * Because string functions are both inline and exported functions and
  32. * folder arch/blackfin/lib is configured as a library path in Makefile,
  33. * symbols exported in folder lib is not linked into built-in.o but
  34. * inlined only. In order to export string symbols to kernel module
  35. * properly, they should be exported here.
  36. */
  37. EXPORT_SYMBOL(strcpy);
  38. EXPORT_SYMBOL(strncpy);
  39. EXPORT_SYMBOL(strcmp);
  40. EXPORT_SYMBOL(strncmp);
  41. /*
  42. * libgcc functions - functions that are used internally by the
  43. * compiler... (prototypes are not correct though, but that
  44. * doesn't really matter since they're not versioned).
  45. */
  46. extern void __ashldi3(void);
  47. extern void __ashrdi3(void);
  48. extern void __smulsi3_highpart(void);
  49. extern void __umulsi3_highpart(void);
  50. extern void __divsi3(void);
  51. extern void __lshrdi3(void);
  52. extern void __modsi3(void);
  53. extern void __muldi3(void);
  54. extern void __udivsi3(void);
  55. extern void __umodsi3(void);
  56. EXPORT_SYMBOL(__ashldi3);
  57. EXPORT_SYMBOL(__ashrdi3);
  58. EXPORT_SYMBOL(__umulsi3_highpart);
  59. EXPORT_SYMBOL(__smulsi3_highpart);
  60. EXPORT_SYMBOL(__divsi3);
  61. EXPORT_SYMBOL(__lshrdi3);
  62. EXPORT_SYMBOL(__modsi3);
  63. EXPORT_SYMBOL(__muldi3);
  64. EXPORT_SYMBOL(__udivsi3);
  65. EXPORT_SYMBOL(__umodsi3);
  66. /* Input/output symbols: lib/{in,out}s.S */
  67. EXPORT_SYMBOL(outsb);
  68. EXPORT_SYMBOL(insb);
  69. EXPORT_SYMBOL(outsw);
  70. EXPORT_SYMBOL(outsw_8);
  71. EXPORT_SYMBOL(insw);
  72. EXPORT_SYMBOL(insw_8);
  73. EXPORT_SYMBOL(outsl);
  74. EXPORT_SYMBOL(insl);
  75. EXPORT_SYMBOL(insl_16);
  76. #ifdef CONFIG_SMP
  77. EXPORT_SYMBOL(__raw_atomic_add_asm);
  78. EXPORT_SYMBOL(__raw_atomic_xadd_asm);
  79. EXPORT_SYMBOL(__raw_atomic_and_asm);
  80. EXPORT_SYMBOL(__raw_atomic_or_asm);
  81. EXPORT_SYMBOL(__raw_atomic_xor_asm);
  82. EXPORT_SYMBOL(__raw_atomic_test_asm);
  83. EXPORT_SYMBOL(__raw_xchg_1_asm);
  84. EXPORT_SYMBOL(__raw_xchg_2_asm);
  85. EXPORT_SYMBOL(__raw_xchg_4_asm);
  86. EXPORT_SYMBOL(__raw_cmpxchg_1_asm);
  87. EXPORT_SYMBOL(__raw_cmpxchg_2_asm);
  88. EXPORT_SYMBOL(__raw_cmpxchg_4_asm);
  89. EXPORT_SYMBOL(__raw_spin_is_locked_asm);
  90. EXPORT_SYMBOL(__raw_spin_lock_asm);
  91. EXPORT_SYMBOL(__raw_spin_trylock_asm);
  92. EXPORT_SYMBOL(__raw_spin_unlock_asm);
  93. EXPORT_SYMBOL(__raw_read_lock_asm);
  94. EXPORT_SYMBOL(__raw_read_trylock_asm);
  95. EXPORT_SYMBOL(__raw_read_unlock_asm);
  96. EXPORT_SYMBOL(__raw_write_lock_asm);
  97. EXPORT_SYMBOL(__raw_write_trylock_asm);
  98. EXPORT_SYMBOL(__raw_write_unlock_asm);
  99. EXPORT_SYMBOL(__raw_bit_set_asm);
  100. EXPORT_SYMBOL(__raw_bit_clear_asm);
  101. EXPORT_SYMBOL(__raw_bit_toggle_asm);
  102. EXPORT_SYMBOL(__raw_bit_test_asm);
  103. EXPORT_SYMBOL(__raw_bit_test_set_asm);
  104. EXPORT_SYMBOL(__raw_bit_test_clear_asm);
  105. EXPORT_SYMBOL(__raw_bit_test_toggle_asm);
  106. EXPORT_SYMBOL(__raw_uncached_fetch_asm);
  107. #ifdef __ARCH_SYNC_CORE_DCACHE
  108. EXPORT_SYMBOL(__raw_smp_mark_barrier_asm);
  109. EXPORT_SYMBOL(__raw_smp_check_barrier_asm);
  110. #endif
  111. #endif
  112. #ifdef CONFIG_FUNCTION_TRACER
  113. extern void _mcount(void);
  114. EXPORT_SYMBOL(_mcount);
  115. #endif