blob: bd56c28fff9fea8cdec3e98fe7e155a61f1d55bb [file] [log] [blame]
Sam Ravnborga439fe52008-07-27 23:00:59 +02001#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
David S. Millerff06dff2012-05-22 17:53:19 -07008
David S. Miller35c96462012-05-23 19:56:06 -07009#define user_addr_max() \
David S. Millerc5389832012-05-24 13:41:58 -070010 (segment_eq(get_fs(), USER_DS) ? TASK_SIZE : ~0UL)
David S. Miller35c96462012-05-23 19:56:06 -070011
Sam Ravnborgf05a6862014-05-16 23:25:50 +020012long strncpy_from_user(char *dest, const char __user *src, long count);
David S. Millerff06dff2012-05-22 17:53:19 -070013
Sam Ravnborga439fe52008-07-27 23:00:59 +020014#endif