1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef ___ASM_SPARC_UACCESS_H
3 #define ___ASM_SPARC_UACCESS_H
4 
5 #include <asm/extable.h>
6 
7 #if defined(__sparc__) && defined(__arch64__)
8 #include <asm/uaccess_64.h>
9 #else
10 #include <asm/uaccess_32.h>
11 #endif
12 
13 #define user_addr_max() \
14 	(uaccess_kernel() ? ~0UL : TASK_SIZE)
15 
16 long strncpy_from_user(char *dest, const char __user *src, long count);
17 
18 #endif
19