exports.c 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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(__get_user_1);
  20. EXPORT_SYMBOL(__get_user_2);
  21. EXPORT_SYMBOL(__get_user_4);
  22. EXPORT_SYMBOL(__get_user_8);
  23. EXPORT_SYMBOL(__put_user_1);
  24. EXPORT_SYMBOL(__put_user_2);
  25. EXPORT_SYMBOL(__put_user_4);
  26. EXPORT_SYMBOL(__put_user_8);
  27. EXPORT_SYMBOL(strnlen_user_asm);
  28. EXPORT_SYMBOL(strncpy_from_user_asm);
  29. EXPORT_SYMBOL(clear_user_asm);
  30. EXPORT_SYMBOL(flush_user_asm);
  31. EXPORT_SYMBOL(inv_user_asm);
  32. EXPORT_SYMBOL(finv_user_asm);
  33. /* arch/tile/kernel/entry.S */
  34. #include <linux/kernel.h>
  35. #include <asm/processor.h>
  36. EXPORT_SYMBOL(current_text_addr);
  37. EXPORT_SYMBOL(dump_stack);
  38. /* arch/tile/kernel/head.S */
  39. EXPORT_SYMBOL(empty_zero_page);
  40. /* arch/tile/lib/, various memcpy files */
  41. EXPORT_SYMBOL(memcpy);
  42. EXPORT_SYMBOL(__copy_to_user_inatomic);
  43. EXPORT_SYMBOL(__copy_from_user_inatomic);
  44. EXPORT_SYMBOL(__copy_from_user_zeroing);
  45. #ifdef __tilegx__
  46. EXPORT_SYMBOL(__copy_in_user_inatomic);
  47. #endif
  48. /* hypervisor glue */
  49. #include <hv/hypervisor.h>
  50. EXPORT_SYMBOL(hv_dev_open);
  51. EXPORT_SYMBOL(hv_dev_pread);
  52. EXPORT_SYMBOL(hv_dev_pwrite);
  53. EXPORT_SYMBOL(hv_dev_preada);
  54. EXPORT_SYMBOL(hv_dev_pwritea);
  55. EXPORT_SYMBOL(hv_dev_poll);
  56. EXPORT_SYMBOL(hv_dev_poll_cancel);
  57. EXPORT_SYMBOL(hv_dev_close);
  58. EXPORT_SYMBOL(hv_sysconf);
  59. EXPORT_SYMBOL(hv_confstr);
  60. /* libgcc.a */
  61. uint32_t __udivsi3(uint32_t dividend, uint32_t divisor);
  62. EXPORT_SYMBOL(__udivsi3);
  63. int32_t __divsi3(int32_t dividend, int32_t divisor);
  64. EXPORT_SYMBOL(__divsi3);
  65. uint64_t __udivdi3(uint64_t dividend, uint64_t divisor);
  66. EXPORT_SYMBOL(__udivdi3);
  67. int64_t __divdi3(int64_t dividend, int64_t divisor);
  68. EXPORT_SYMBOL(__divdi3);
  69. uint32_t __umodsi3(uint32_t dividend, uint32_t divisor);
  70. EXPORT_SYMBOL(__umodsi3);
  71. int32_t __modsi3(int32_t dividend, int32_t divisor);
  72. EXPORT_SYMBOL(__modsi3);
  73. uint64_t __umoddi3(uint64_t dividend, uint64_t divisor);
  74. EXPORT_SYMBOL(__umoddi3);
  75. int64_t __moddi3(int64_t dividend, int64_t divisor);
  76. EXPORT_SYMBOL(__moddi3);
  77. #ifndef __tilegx__
  78. int64_t __muldi3(int64_t, int64_t);
  79. EXPORT_SYMBOL(__muldi3);
  80. uint64_t __lshrdi3(uint64_t, unsigned int);
  81. EXPORT_SYMBOL(__lshrdi3);
  82. uint64_t __ashrdi3(uint64_t, unsigned int);
  83. EXPORT_SYMBOL(__ashrdi3);
  84. uint64_t __ashldi3(uint64_t, unsigned int);
  85. EXPORT_SYMBOL(__ashldi3);
  86. int __ffsdi2(uint64_t);
  87. EXPORT_SYMBOL(__ffsdi2);
  88. #endif