Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 | * |
Steven J. Hill | c022630 | 2012-07-06 21:56:01 +0200 | [diff] [blame] | 8 | * Copyright (C) 1996, 97, 98, 99, 2000, 01, 03, 04, 05, 12 by Ralf Baechle |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | * Copyright (C) 1999, 2000, 01 Silicon Graphics, Inc. |
| 10 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 11 | #include <linux/interrupt.h> |
Paul Gortmaker | 73bc256 | 2011-07-23 16:30:40 -0400 | [diff] [blame] | 12 | #include <linux/export.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | #include <asm/checksum.h> |
Ralf Baechle | 970d032 | 2012-10-18 13:54:15 +0200 | [diff] [blame] | 14 | #include <linux/mm.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 | #include <asm/uaccess.h> |
Wu Zhangjin | d2bb0762 | 2009-11-20 20:34:29 +0800 | [diff] [blame] | 16 | #include <asm/ftrace.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | |
| 18 | extern void *__bzero(void *__s, size_t __count); |
| 19 | extern long __strncpy_from_user_nocheck_asm(char *__to, |
Ralf Baechle | 7034228 | 2013-01-22 12:59:30 +0100 | [diff] [blame] | 20 | const char *__from, long __len); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 21 | extern long __strncpy_from_user_asm(char *__to, const char *__from, |
Ralf Baechle | 7034228 | 2013-01-22 12:59:30 +0100 | [diff] [blame] | 22 | long __len); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 23 | extern long __strlen_user_nocheck_asm(const char *s); |
| 24 | extern long __strlen_user_asm(const char *s); |
| 25 | extern long __strnlen_user_nocheck_asm(const char *s); |
| 26 | extern long __strnlen_user_asm(const char *s); |
| 27 | |
| 28 | /* |
| 29 | * String functions |
| 30 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 31 | EXPORT_SYMBOL(memset); |
| 32 | EXPORT_SYMBOL(memcpy); |
| 33 | EXPORT_SYMBOL(memmove); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 34 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 35 | /* |
Steven J. Hill | c022630 | 2012-07-06 21:56:01 +0200 | [diff] [blame] | 36 | * Functions that operate on entire pages. Mostly used by memory management. |
| 37 | */ |
| 38 | EXPORT_SYMBOL(clear_page); |
| 39 | EXPORT_SYMBOL(copy_page); |
| 40 | |
| 41 | /* |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 42 | * Userspace access stuff. |
| 43 | */ |
| 44 | EXPORT_SYMBOL(__copy_user); |
Ralf Baechle | d0c91ae | 2007-03-05 15:54:20 +0000 | [diff] [blame] | 45 | EXPORT_SYMBOL(__copy_user_inatomic); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 46 | EXPORT_SYMBOL(__bzero); |
| 47 | EXPORT_SYMBOL(__strncpy_from_user_nocheck_asm); |
| 48 | EXPORT_SYMBOL(__strncpy_from_user_asm); |
| 49 | EXPORT_SYMBOL(__strlen_user_nocheck_asm); |
| 50 | EXPORT_SYMBOL(__strlen_user_asm); |
| 51 | EXPORT_SYMBOL(__strnlen_user_nocheck_asm); |
| 52 | EXPORT_SYMBOL(__strnlen_user_asm); |
| 53 | |
| 54 | EXPORT_SYMBOL(csum_partial); |
Atsushi Nemoto | f860c90 | 2006-12-13 01:22:06 +0900 | [diff] [blame] | 55 | EXPORT_SYMBOL(csum_partial_copy_nocheck); |
| 56 | EXPORT_SYMBOL(__csum_partial_copy_user); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 57 | |
| 58 | EXPORT_SYMBOL(invalid_pte_table); |
Wu Zhangjin | d2bb0762 | 2009-11-20 20:34:29 +0800 | [diff] [blame] | 59 | #ifdef CONFIG_FUNCTION_TRACER |
| 60 | /* _mcount is defined in arch/mips/kernel/mcount.S */ |
| 61 | EXPORT_SYMBOL(_mcount); |
| 62 | #endif |