xtensa_ksyms.c 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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 <joe@tensilica.com>
  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 <asm/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/pgalloc.h>
  27. #include <asm/ftrace.h>
  28. #ifdef CONFIG_BLK_DEV_FD
  29. #include <asm/floppy.h>
  30. #endif
  31. #ifdef CONFIG_NET
  32. #include <net/checksum.h>
  33. #endif /* CONFIG_NET */
  34. /*
  35. * String functions
  36. */
  37. EXPORT_SYMBOL(memset);
  38. EXPORT_SYMBOL(memcpy);
  39. EXPORT_SYMBOL(memmove);
  40. EXPORT_SYMBOL(__strncpy_user);
  41. EXPORT_SYMBOL(clear_page);
  42. EXPORT_SYMBOL(copy_page);
  43. EXPORT_SYMBOL(empty_zero_page);
  44. /*
  45. * gcc internal math functions
  46. */
  47. extern long long __ashrdi3(long long, int);
  48. extern long long __ashldi3(long long, int);
  49. extern long long __lshrdi3(long long, int);
  50. extern int __divsi3(int, int);
  51. extern int __modsi3(int, int);
  52. extern long long __muldi3(long long, long long);
  53. extern int __mulsi3(int, int);
  54. extern unsigned int __udivsi3(unsigned int, unsigned int);
  55. extern unsigned int __umodsi3(unsigned int, unsigned int);
  56. extern unsigned long long __umoddi3(unsigned long long, unsigned long long);
  57. extern unsigned long long __udivdi3(unsigned long long, unsigned long long);
  58. extern int __ucmpdi2(int, int);
  59. EXPORT_SYMBOL(__ashldi3);
  60. EXPORT_SYMBOL(__ashrdi3);
  61. EXPORT_SYMBOL(__lshrdi3);
  62. EXPORT_SYMBOL(__divsi3);
  63. EXPORT_SYMBOL(__modsi3);
  64. EXPORT_SYMBOL(__muldi3);
  65. EXPORT_SYMBOL(__mulsi3);
  66. EXPORT_SYMBOL(__udivsi3);
  67. EXPORT_SYMBOL(__umodsi3);
  68. EXPORT_SYMBOL(__udivdi3);
  69. EXPORT_SYMBOL(__umoddi3);
  70. EXPORT_SYMBOL(__ucmpdi2);
  71. void __xtensa_libgcc_window_spill(void)
  72. {
  73. BUG();
  74. }
  75. EXPORT_SYMBOL(__xtensa_libgcc_window_spill);
  76. unsigned long __sync_fetch_and_and_4(unsigned long *p, unsigned long v)
  77. {
  78. BUG();
  79. }
  80. EXPORT_SYMBOL(__sync_fetch_and_and_4);
  81. unsigned long __sync_fetch_and_or_4(unsigned long *p, unsigned long v)
  82. {
  83. BUG();
  84. }
  85. EXPORT_SYMBOL(__sync_fetch_and_or_4);
  86. #ifdef CONFIG_NET
  87. /*
  88. * Networking support
  89. */
  90. EXPORT_SYMBOL(csum_partial);
  91. EXPORT_SYMBOL(csum_partial_copy_generic);
  92. #endif /* CONFIG_NET */
  93. /*
  94. * Architecture-specific symbols
  95. */
  96. EXPORT_SYMBOL(__xtensa_copy_user);
  97. EXPORT_SYMBOL(__invalidate_icache_range);
  98. /*
  99. * Kernel hacking ...
  100. */
  101. #if defined(CONFIG_VGA_CONSOLE) || defined(CONFIG_DUMMY_CONSOLE)
  102. // FIXME EXPORT_SYMBOL(screen_info);
  103. #endif
  104. EXPORT_SYMBOL(outsb);
  105. EXPORT_SYMBOL(outsw);
  106. EXPORT_SYMBOL(outsl);
  107. EXPORT_SYMBOL(insb);
  108. EXPORT_SYMBOL(insw);
  109. EXPORT_SYMBOL(insl);
  110. extern long common_exception_return;
  111. EXPORT_SYMBOL(common_exception_return);
  112. #ifdef CONFIG_FUNCTION_TRACER
  113. EXPORT_SYMBOL(_mcount);
  114. #endif
  115. EXPORT_SYMBOL(__invalidate_dcache_range);
  116. #if XCHAL_DCACHE_IS_WRITEBACK
  117. EXPORT_SYMBOL(__flush_dcache_range);
  118. #endif