exports.c 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /*
  2. * Copyright 2010 Tilera Corporation. All Rights Reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License
  6. * as published by the Free Software Foundation, version 2.
  7. *
  8. * This program is distributed in the hope that it will be useful, but
  9. * WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
  11. * NON INFRINGEMENT. See the GNU General Public License for
  12. * more details.
  13. *
  14. * Exports from assembler code and from libtile-cc.
  15. */
  16. #include <linux/module.h>
  17. /* arch/tile/lib/usercopy.S */
  18. #include <linux/uaccess.h>
  19. EXPORT_SYMBOL(clear_user_asm);
  20. EXPORT_SYMBOL(flush_user_asm);
  21. EXPORT_SYMBOL(finv_user_asm);
  22. /* arch/tile/kernel/entry.S */
  23. #include <linux/kernel.h>
  24. #include <asm/processor.h>
  25. EXPORT_SYMBOL(current_text_addr);
  26. /* arch/tile/kernel/head.S */
  27. EXPORT_SYMBOL(empty_zero_page);
  28. #ifdef CONFIG_FUNCTION_TRACER
  29. /* arch/tile/kernel/mcount_64.S */
  30. #include <asm/ftrace.h>
  31. EXPORT_SYMBOL(__mcount);
  32. #endif /* CONFIG_FUNCTION_TRACER */
  33. /* arch/tile/lib/, various memcpy files */
  34. EXPORT_SYMBOL(memcpy);
  35. EXPORT_SYMBOL(__copy_to_user_inatomic);
  36. EXPORT_SYMBOL(__copy_from_user_inatomic);
  37. EXPORT_SYMBOL(__copy_from_user_zeroing);
  38. #ifdef __tilegx__
  39. EXPORT_SYMBOL(__copy_in_user_inatomic);
  40. #endif
  41. /* hypervisor glue */
  42. #include <hv/hypervisor.h>
  43. EXPORT_SYMBOL(hv_dev_open);
  44. EXPORT_SYMBOL(hv_dev_pread);
  45. EXPORT_SYMBOL(hv_dev_pwrite);
  46. EXPORT_SYMBOL(hv_dev_preada);
  47. EXPORT_SYMBOL(hv_dev_pwritea);
  48. EXPORT_SYMBOL(hv_dev_poll);
  49. EXPORT_SYMBOL(hv_dev_poll_cancel);
  50. EXPORT_SYMBOL(hv_dev_close);
  51. EXPORT_SYMBOL(hv_sysconf);
  52. EXPORT_SYMBOL(hv_confstr);
  53. EXPORT_SYMBOL(hv_get_rtc);
  54. EXPORT_SYMBOL(hv_set_rtc);
  55. /* libgcc.a */
  56. uint32_t __udivsi3(uint32_t dividend, uint32_t divisor);
  57. EXPORT_SYMBOL(__udivsi3);
  58. int32_t __divsi3(int32_t dividend, int32_t divisor);
  59. EXPORT_SYMBOL(__divsi3);
  60. uint64_t __udivdi3(uint64_t dividend, uint64_t divisor);
  61. EXPORT_SYMBOL(__udivdi3);
  62. int64_t __divdi3(int64_t dividend, int64_t divisor);
  63. EXPORT_SYMBOL(__divdi3);
  64. uint32_t __umodsi3(uint32_t dividend, uint32_t divisor);
  65. EXPORT_SYMBOL(__umodsi3);
  66. int32_t __modsi3(int32_t dividend, int32_t divisor);
  67. EXPORT_SYMBOL(__modsi3);
  68. uint64_t __umoddi3(uint64_t dividend, uint64_t divisor);
  69. EXPORT_SYMBOL(__umoddi3);
  70. int64_t __moddi3(int64_t dividend, int64_t divisor);
  71. EXPORT_SYMBOL(__moddi3);
  72. #ifndef __tilegx__
  73. int64_t __muldi3(int64_t, int64_t);
  74. EXPORT_SYMBOL(__muldi3);
  75. uint64_t __lshrdi3(uint64_t, unsigned int);
  76. EXPORT_SYMBOL(__lshrdi3);
  77. uint64_t __ashrdi3(uint64_t, unsigned int);
  78. EXPORT_SYMBOL(__ashrdi3);
  79. uint64_t __ashldi3(uint64_t, unsigned int);
  80. EXPORT_SYMBOL(__ashldi3);
  81. int __ffsdi2(uint64_t);
  82. EXPORT_SYMBOL(__ffsdi2);
  83. #endif