xtensa_ksyms.c 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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/checksum.h>
  22. #include <asm/dma.h>
  23. #include <asm/io.h>
  24. #include <asm/page.h>
  25. #include <asm/pgalloc.h>
  26. #ifdef CONFIG_BLK_DEV_FD
  27. #include <asm/floppy.h>
  28. #endif
  29. #ifdef CONFIG_NET
  30. #include <net/checksum.h>
  31. #endif /* CONFIG_NET */
  32. /*
  33. * String functions
  34. */
  35. EXPORT_SYMBOL(memset);
  36. EXPORT_SYMBOL(memcpy);
  37. EXPORT_SYMBOL(memmove);
  38. EXPORT_SYMBOL(kernel_thread);
  39. /*
  40. * gcc internal math functions
  41. */
  42. extern long long __ashrdi3(long long, int);
  43. extern long long __ashldi3(long long, int);
  44. extern long long __lshrdi3(long long, int);
  45. extern int __divsi3(int, int);
  46. extern int __modsi3(int, int);
  47. extern long long __muldi3(long long, long long);
  48. extern int __mulsi3(int, int);
  49. extern unsigned int __udivsi3(unsigned int, unsigned int);
  50. extern unsigned int __umodsi3(unsigned int, unsigned int);
  51. extern unsigned long long __umoddi3(unsigned long long, unsigned long long);
  52. extern unsigned long long __udivdi3(unsigned long long, unsigned long long);
  53. EXPORT_SYMBOL(__ashldi3);
  54. EXPORT_SYMBOL(__ashrdi3);
  55. EXPORT_SYMBOL(__lshrdi3);
  56. EXPORT_SYMBOL(__divsi3);
  57. EXPORT_SYMBOL(__modsi3);
  58. EXPORT_SYMBOL(__muldi3);
  59. EXPORT_SYMBOL(__mulsi3);
  60. EXPORT_SYMBOL(__udivsi3);
  61. EXPORT_SYMBOL(__umodsi3);
  62. EXPORT_SYMBOL(__udivdi3);
  63. EXPORT_SYMBOL(__umoddi3);
  64. #ifdef CONFIG_NET
  65. /*
  66. * Networking support
  67. */
  68. EXPORT_SYMBOL(csum_partial_copy_generic);
  69. #endif /* CONFIG_NET */
  70. /*
  71. * Architecture-specific symbols
  72. */
  73. EXPORT_SYMBOL(__xtensa_copy_user);
  74. /*
  75. * Kernel hacking ...
  76. */
  77. #if defined(CONFIG_VGA_CONSOLE) || defined(CONFIG_DUMMY_CONSOLE)
  78. // FIXME EXPORT_SYMBOL(screen_info);
  79. #endif
  80. EXPORT_SYMBOL(outsb);
  81. EXPORT_SYMBOL(outsw);
  82. EXPORT_SYMBOL(outsl);
  83. EXPORT_SYMBOL(insb);
  84. EXPORT_SYMBOL(insw);
  85. EXPORT_SYMBOL(insl);