xtensa_ksyms.c 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. /*
  2. * arch/xtensa/kernel/xtensa_ksyms.c
  3. *
  4. * Export Xtensa-specific functions for loadable modules.
  5. *
  6. * This file is subject to the terms and conditions of the GNU General Public
  7. * License. See the file "COPYING" in the main directory of this archive
  8. * for more details.
  9. *
  10. * Copyright (C) 2001 - 2005 Tensilica Inc.
  11. *
  12. * Joe Taylor <[email protected]>
  13. */
  14. #include <linux/module.h>
  15. #include <linux/string.h>
  16. #include <linux/mm.h>
  17. #include <linux/interrupt.h>
  18. #include <asm/irq.h>
  19. #include <linux/in6.h>
  20. #include <linux/uaccess.h>
  21. #include <asm/cacheflush.h>
  22. #include <asm/checksum.h>
  23. #include <asm/dma.h>
  24. #include <asm/io.h>
  25. #include <asm/page.h>
  26. #include <asm/ftrace.h>
  27. #ifdef CONFIG_BLK_DEV_FD
  28. #include <asm/floppy.h>
  29. #endif
  30. #ifdef CONFIG_NET
  31. #include <net/checksum.h>
  32. #endif /* CONFIG_NET */
  33. /*
  34. * String functions
  35. */
  36. EXPORT_SYMBOL(memset);
  37. EXPORT_SYMBOL(memcpy);
  38. EXPORT_SYMBOL(memmove);
  39. EXPORT_SYMBOL(__memset);
  40. EXPORT_SYMBOL(__memcpy);
  41. EXPORT_SYMBOL(__memmove);
  42. #ifdef CONFIG_ARCH_HAS_STRNCPY_FROM_USER
  43. EXPORT_SYMBOL(__strncpy_user);
  44. #endif
  45. EXPORT_SYMBOL(clear_page);
  46. EXPORT_SYMBOL(copy_page);
  47. EXPORT_SYMBOL(empty_zero_page);
  48. /*
  49. * gcc internal math functions
  50. */
  51. extern long long __ashrdi3(long long, int);
  52. extern long long __ashldi3(long long, int);
  53. extern long long __bswapdi2(long long);
  54. extern int __bswapsi2(int);
  55. extern long long __lshrdi3(long long, int);
  56. extern int __divsi3(int, int);
  57. extern int __modsi3(int, int);
  58. extern int __mulsi3(int, int);
  59. extern unsigned int __udivsi3(unsigned int, unsigned int);
  60. extern unsigned int __umodsi3(unsigned int, unsigned int);
  61. extern unsigned long long __umulsidi3(unsigned int, unsigned int);
  62. EXPORT_SYMBOL(__ashldi3);
  63. EXPORT_SYMBOL(__ashrdi3);
  64. EXPORT_SYMBOL(__bswapdi2);
  65. EXPORT_SYMBOL(__bswapsi2);
  66. EXPORT_SYMBOL(__lshrdi3);
  67. EXPORT_SYMBOL(__divsi3);
  68. EXPORT_SYMBOL(__modsi3);
  69. EXPORT_SYMBOL(__mulsi3);
  70. EXPORT_SYMBOL(__udivsi3);
  71. EXPORT_SYMBOL(__umodsi3);
  72. EXPORT_SYMBOL(__umulsidi3);
  73. unsigned int __sync_fetch_and_and_4(volatile void *p, unsigned int v)
  74. {
  75. BUG();
  76. }
  77. EXPORT_SYMBOL(__sync_fetch_and_and_4);
  78. unsigned int __sync_fetch_and_or_4(volatile void *p, unsigned int v)
  79. {
  80. BUG();
  81. }
  82. EXPORT_SYMBOL(__sync_fetch_and_or_4);
  83. /*
  84. * Networking support
  85. */
  86. EXPORT_SYMBOL(csum_partial);
  87. EXPORT_SYMBOL(csum_partial_copy_generic);
  88. /*
  89. * Architecture-specific symbols
  90. */
  91. EXPORT_SYMBOL(__xtensa_copy_user);
  92. EXPORT_SYMBOL(__invalidate_icache_range);
  93. /*
  94. * Kernel hacking ...
  95. */
  96. #if defined(CONFIG_VGA_CONSOLE) || defined(CONFIG_DUMMY_CONSOLE)
  97. // FIXME EXPORT_SYMBOL(screen_info);
  98. #endif
  99. extern long common_exception_return;
  100. EXPORT_SYMBOL(common_exception_return);
  101. #ifdef CONFIG_FUNCTION_TRACER
  102. EXPORT_SYMBOL(_mcount);
  103. #endif
  104. EXPORT_SYMBOL(__invalidate_dcache_range);
  105. #if XCHAL_DCACHE_IS_WRITEBACK
  106. EXPORT_SYMBOL(__flush_dcache_range);
  107. #endif