mips_ksyms.c 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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_kernel(void *__s, size_t __count);
  20. extern void *__bzero(void *__s, size_t __count);
  21. extern long __strncpy_from_kernel_nocheck_asm(char *__to,
  22. const char *__from, long __len);
  23. extern long __strncpy_from_kernel_asm(char *__to, const char *__from,
  24. long __len);
  25. extern long __strncpy_from_user_nocheck_asm(char *__to,
  26. const char *__from, long __len);
  27. extern long __strncpy_from_user_asm(char *__to, const char *__from,
  28. long __len);
  29. extern long __strlen_kernel_asm(const char *s);
  30. extern long __strlen_user_asm(const char *s);
  31. extern long __strnlen_kernel_nocheck_asm(const char *s);
  32. extern long __strnlen_kernel_asm(const char *s);
  33. extern long __strnlen_user_nocheck_asm(const char *s);
  34. extern long __strnlen_user_asm(const char *s);
  35. /*
  36. * Core architecture code
  37. */
  38. EXPORT_SYMBOL_GPL(_save_fp);
  39. #ifdef CONFIG_CPU_HAS_MSA
  40. EXPORT_SYMBOL_GPL(_save_msa);
  41. #endif
  42. /*
  43. * String functions
  44. */
  45. EXPORT_SYMBOL(memset);
  46. EXPORT_SYMBOL(memcpy);
  47. EXPORT_SYMBOL(memmove);
  48. /*
  49. * Functions that operate on entire pages. Mostly used by memory management.
  50. */
  51. EXPORT_SYMBOL(clear_page);
  52. EXPORT_SYMBOL(copy_page);
  53. /*
  54. * Userspace access stuff.
  55. */
  56. EXPORT_SYMBOL(__copy_user);
  57. EXPORT_SYMBOL(__copy_user_inatomic);
  58. #ifdef CONFIG_EVA
  59. EXPORT_SYMBOL(__copy_from_user_eva);
  60. EXPORT_SYMBOL(__copy_in_user_eva);
  61. EXPORT_SYMBOL(__copy_to_user_eva);
  62. EXPORT_SYMBOL(__copy_user_inatomic_eva);
  63. EXPORT_SYMBOL(__bzero_kernel);
  64. #endif
  65. EXPORT_SYMBOL(__bzero);
  66. EXPORT_SYMBOL(__strncpy_from_kernel_nocheck_asm);
  67. EXPORT_SYMBOL(__strncpy_from_kernel_asm);
  68. EXPORT_SYMBOL(__strncpy_from_user_nocheck_asm);
  69. EXPORT_SYMBOL(__strncpy_from_user_asm);
  70. EXPORT_SYMBOL(__strlen_kernel_asm);
  71. EXPORT_SYMBOL(__strlen_user_asm);
  72. EXPORT_SYMBOL(__strnlen_kernel_nocheck_asm);
  73. EXPORT_SYMBOL(__strnlen_kernel_asm);
  74. EXPORT_SYMBOL(__strnlen_user_nocheck_asm);
  75. EXPORT_SYMBOL(__strnlen_user_asm);
  76. #ifndef CONFIG_CPU_MIPSR6
  77. EXPORT_SYMBOL(csum_partial);
  78. EXPORT_SYMBOL(csum_partial_copy_nocheck);
  79. EXPORT_SYMBOL(__csum_partial_copy_kernel);
  80. EXPORT_SYMBOL(__csum_partial_copy_to_user);
  81. EXPORT_SYMBOL(__csum_partial_copy_from_user);
  82. #endif
  83. EXPORT_SYMBOL(invalid_pte_table);
  84. #ifdef CONFIG_FUNCTION_TRACER
  85. /* _mcount is defined in arch/mips/kernel/mcount.S */
  86. EXPORT_SYMBOL(_mcount);
  87. #endif