blob: dd85bc2c2cad5211c19695362bba874e0ce17b3c [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Sam Ravnborga439fe52008-07-27 23:00:59 +02002#ifndef ___ASM_SPARC_UACCESS_H
3#define ___ASM_SPARC_UACCESS_H
4#if defined(__sparc__) && defined(__arch64__)
5#include <asm/uaccess_64.h>
6#else
7#include <asm/uaccess_32.h>
8#endif
David S. Millerff06dff2012-05-22 17:53:19 -07009
David S. Miller35c96462012-05-23 19:56:06 -070010#define user_addr_max() \
Al Virodb68ce12017-03-20 21:08:07 -040011 (uaccess_kernel() ? ~0UL : TASK_SIZE)
David S. Miller35c96462012-05-23 19:56:06 -070012
Sam Ravnborgf05a6862014-05-16 23:25:50 +020013long strncpy_from_user(char *dest, const char __user *src, long count);
David S. Millerff06dff2012-05-22 17:53:19 -070014
Sam Ravnborga439fe52008-07-27 23:00:59 +020015#endif