exports.c 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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(__put_user_1);
  23. EXPORT_SYMBOL(__put_user_2);
  24. EXPORT_SYMBOL(__put_user_4);
  25. EXPORT_SYMBOL(__put_user_8);
  26. EXPORT_SYMBOL(strnlen_user_asm);
  27. EXPORT_SYMBOL(strncpy_from_user_asm);
  28. EXPORT_SYMBOL(clear_user_asm);
  29. /* arch/tile/kernel/entry.S */
  30. #include <linux/kernel.h>
  31. #include <asm/processor.h>
  32. EXPORT_SYMBOL(current_text_addr);
  33. EXPORT_SYMBOL(dump_stack);
  34. /* arch/tile/lib/__memcpy.S */
  35. /* NOTE: on TILE64, these symbols appear in arch/tile/lib/memcpy_tile64.c */
  36. EXPORT_SYMBOL(memcpy);
  37. EXPORT_SYMBOL(__copy_to_user_inatomic);
  38. EXPORT_SYMBOL(__copy_from_user_inatomic);
  39. EXPORT_SYMBOL(__copy_from_user_zeroing);
  40. /* hypervisor glue */
  41. #include <hv/hypervisor.h>
  42. EXPORT_SYMBOL(hv_dev_open);
  43. EXPORT_SYMBOL(hv_dev_pread);
  44. EXPORT_SYMBOL(hv_dev_pwrite);
  45. EXPORT_SYMBOL(hv_dev_close);
  46. /* -ltile-cc */
  47. uint32_t __udivsi3(uint32_t dividend, uint32_t divisor);
  48. EXPORT_SYMBOL(__udivsi3);
  49. int32_t __divsi3(int32_t dividend, int32_t divisor);
  50. EXPORT_SYMBOL(__divsi3);
  51. uint64_t __udivdi3(uint64_t dividend, uint64_t divisor);
  52. EXPORT_SYMBOL(__udivdi3);
  53. int64_t __divdi3(int64_t dividend, int64_t divisor);
  54. EXPORT_SYMBOL(__divdi3);
  55. uint32_t __umodsi3(uint32_t dividend, uint32_t divisor);
  56. EXPORT_SYMBOL(__umodsi3);
  57. int32_t __modsi3(int32_t dividend, int32_t divisor);
  58. EXPORT_SYMBOL(__modsi3);
  59. uint64_t __umoddi3(uint64_t dividend, uint64_t divisor);
  60. EXPORT_SYMBOL(__umoddi3);
  61. int64_t __moddi3(int64_t dividend, int64_t divisor);
  62. EXPORT_SYMBOL(__moddi3);
  63. #ifndef __tilegx__
  64. uint64_t __ll_mul(uint64_t n0, uint64_t n1);
  65. EXPORT_SYMBOL(__ll_mul);
  66. #endif
  67. #ifndef __tilegx__
  68. int64_t __muldi3(int64_t, int64_t);
  69. EXPORT_SYMBOL(__muldi3);
  70. uint64_t __lshrdi3(uint64_t, unsigned int);
  71. EXPORT_SYMBOL(__lshrdi3);
  72. #endif