x8664_ksyms_64.c 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /* Exports for assembly files.
  2. All C exports should go in the respective C files. */
  3. #include <linux/module.h>
  4. #include <linux/smp.h>
  5. #include <net/checksum.h>
  6. #include <asm/processor.h>
  7. #include <asm/pgtable.h>
  8. #include <asm/uaccess.h>
  9. #include <asm/desc.h>
  10. #include <asm/ftrace.h>
  11. #ifdef CONFIG_FUNCTION_TRACER
  12. /* mcount and __fentry__ are defined in assembly */
  13. #ifdef CC_USING_FENTRY
  14. EXPORT_SYMBOL(__fentry__);
  15. #else
  16. EXPORT_SYMBOL(mcount);
  17. #endif
  18. #endif
  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(copy_user_generic_string);
  28. EXPORT_SYMBOL(copy_user_generic_unrolled);
  29. EXPORT_SYMBOL(copy_user_enhanced_fast_string);
  30. EXPORT_SYMBOL(__copy_user_nocache);
  31. EXPORT_SYMBOL(_copy_from_user);
  32. EXPORT_SYMBOL(_copy_to_user);
  33. EXPORT_SYMBOL(copy_page);
  34. EXPORT_SYMBOL(clear_page);
  35. EXPORT_SYMBOL(csum_partial);
  36. EXPORT_SYMBOL(__sw_hweight32);
  37. EXPORT_SYMBOL(__sw_hweight64);
  38. /*
  39. * Export string functions. We normally rely on gcc builtin for most of these,
  40. * but gcc sometimes decides not to inline them.
  41. */
  42. #undef memcpy
  43. #undef memset
  44. #undef memmove
  45. extern void *__memset(void *, int, __kernel_size_t);
  46. extern void *__memcpy(void *, const void *, __kernel_size_t);
  47. extern void *__memmove(void *, const void *, __kernel_size_t);
  48. extern void *memset(void *, int, __kernel_size_t);
  49. extern void *memcpy(void *, const void *, __kernel_size_t);
  50. extern void *memmove(void *, const void *, __kernel_size_t);
  51. EXPORT_SYMBOL(__memset);
  52. EXPORT_SYMBOL(__memcpy);
  53. EXPORT_SYMBOL(__memmove);
  54. EXPORT_SYMBOL(memset);
  55. EXPORT_SYMBOL(memcpy);
  56. EXPORT_SYMBOL(memmove);
  57. #ifndef CONFIG_DEBUG_VIRTUAL
  58. EXPORT_SYMBOL(phys_base);
  59. #endif
  60. EXPORT_SYMBOL(empty_zero_page);
  61. #ifndef CONFIG_PARAVIRT
  62. EXPORT_SYMBOL(native_load_gs_index);
  63. #endif
  64. #ifdef CONFIG_PREEMPT
  65. EXPORT_SYMBOL(___preempt_schedule);
  66. EXPORT_SYMBOL(___preempt_schedule_notrace);
  67. #endif