]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blob - arch/sparc/include/asm/uaccess.h
20c2acb06332f6a9a6f1d188167e2867d5c8b520
[mirror_ubuntu-zesty-kernel.git] / arch / sparc / include / asm / uaccess.h
1 #ifndef ___ASM_SPARC_UACCESS_H
2 #define ___ASM_SPARC_UACCESS_H
3 #if defined(__sparc__) && defined(__arch64__)
4 #include <asm/uaccess_64.h>
5 #else
6 #include <asm/uaccess_32.h>
7 #endif
8
9 #define user_addr_max() \
10 (segment_eq(get_fs(), USER_DS) ? STACK_TOP : ~0UL)
11
12 extern long strncpy_from_user(char *dest, const char __user *src, long count);
13
14 #endif