mips_ksyms.c 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /*
  2. * Export MIPS-specific functions needed for loadable modules.
  3. *
  4. * This file is subject to the terms and conditions of the GNU General Public
  5. * License. See the file "COPYING" in the main directory of this archive
  6. * for more details.
  7. *
  8. * Copyright (C) 1996, 97, 98, 99, 2000, 01, 03, 04, 05, 12 by Ralf Baechle
  9. * Copyright (C) 1999, 2000, 01 Silicon Graphics, Inc.
  10. */
  11. #include <linux/interrupt.h>
  12. #include <linux/export.h>
  13. #include <asm/checksum.h>
  14. #include <linux/mm.h>
  15. #include <asm/uaccess.h>
  16. #include <asm/ftrace.h>
  17. #include <asm/fpu.h>
  18. #include <asm/msa.h>
  19. extern void *__bzero(void *__s, size_t __count);
  20. extern long __strncpy_from_kernel_nocheck_asm(char *__to,
  21. const char *__from, long __len);
  22. extern long __strncpy_from_kernel_asm(char *__to, const char *__from,
  23. long __len);
  24. extern long __strncpy_from_user_nocheck_asm(char *__to,
  25. const char *__from, long __len);
  26. extern long __strncpy_from_user_asm(char *__to, const char *__from,
  27. long __len);
  28. extern long __strlen_kernel_asm(const char *s);
  29. extern long __strlen_user_asm(const char *s);
  30. extern long __strnlen_kernel_nocheck_asm(const char *s);
  31. extern long __strnlen_kernel_asm(const char *s);
  32. extern long __strnlen_user_nocheck_asm(const char *s);
  33. extern long __strnlen_user_asm(const char *s);
  34. /*
  35. * Core architecture code
  36. */
  37. EXPORT_SYMBOL_GPL(_save_fp);
  38. #ifdef CONFIG_CPU_HAS_MSA
  39. EXPORT_SYMBOL_GPL(_save_msa);
  40. #endif
  41. /*
  42. * String functions
  43. */
  44. EXPORT_SYMBOL(memset);
  45. EXPORT_SYMBOL(memcpy);
  46. EXPORT_SYMBOL(memmove);
  47. /*
  48. * Functions that operate on entire pages. Mostly used by memory management.
  49. */
  50. EXPORT_SYMBOL(clear_page);
  51. EXPORT_SYMBOL(copy_page);
  52. /*
  53. * Userspace access stuff.
  54. */
  55. EXPORT_SYMBOL(__copy_user);
  56. EXPORT_SYMBOL(__copy_user_inatomic);
  57. #ifdef CONFIG_EVA
  58. EXPORT_SYMBOL(__copy_from_user_eva);
  59. EXPORT_SYMBOL(__copy_in_user_eva);
  60. EXPORT_SYMBOL(__copy_to_user_eva);
  61. EXPORT_SYMBOL(__copy_user_inatomic_eva);
  62. #endif
  63. EXPORT_SYMBOL(__bzero);
  64. EXPORT_SYMBOL(__strncpy_from_kernel_nocheck_asm);
  65. EXPORT_SYMBOL(__strncpy_from_kernel_asm);
  66. EXPORT_SYMBOL(__strncpy_from_user_nocheck_asm);
  67. EXPORT_SYMBOL(__strncpy_from_user_asm);
  68. EXPORT_SYMBOL(__strlen_kernel_asm);
  69. EXPORT_SYMBOL(__strlen_user_asm);
  70. EXPORT_SYMBOL(__strnlen_kernel_nocheck_asm);
  71. EXPORT_SYMBOL(__strnlen_kernel_asm);
  72. EXPORT_SYMBOL(__strnlen_user_nocheck_asm);
  73. EXPORT_SYMBOL(__strnlen_user_asm);
  74. #ifndef CONFIG_CPU_MIPSR6
  75. EXPORT_SYMBOL(csum_partial);
  76. EXPORT_SYMBOL(csum_partial_copy_nocheck);
  77. EXPORT_SYMBOL(__csum_partial_copy_kernel);
  78. EXPORT_SYMBOL(__csum_partial_copy_to_user);
  79. EXPORT_SYMBOL(__csum_partial_copy_from_user);
  80. #endif
  81. EXPORT_SYMBOL(invalid_pte_table);
  82. #ifdef CONFIG_FUNCTION_TRACER
  83. /* _mcount is defined in arch/mips/kernel/mcount.S */
  84. EXPORT_SYMBOL(_mcount);
  85. #endif