blob: 0167d26d0d1dacd34cc09430d926d2fbbaaf9ddc [file] [log] [blame]
Sam Ravnborgf5e706a2008-07-17 21:55:51 -07001#ifndef ___ASM_SPARC_UACCESS_H
2#define ___ASM_SPARC_UACCESS_H
3#if defined(__sparc__) && defined(__arch64__)
Sam Ravnborga439fe52008-07-27 23:00:59 +02004#include <asm/uaccess_64.h>
Sam Ravnborgf5e706a2008-07-17 21:55:51 -07005#else
Sam Ravnborga439fe52008-07-27 23:00:59 +02006#include <asm/uaccess_32.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07007#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
David S. Millerff06dff2012-05-22 17:53:19 -070012extern long strncpy_from_user(char *dest, const char __user *src, long count);
13
Sam Ravnborgf5e706a2008-07-17 21:55:51 -070014#endif