2008-07-18 12:55:51 +08:00
|
|
|
#ifndef ___ASM_SPARC_UACCESS_H
|
|
|
|
#define ___ASM_SPARC_UACCESS_H
|
|
|
|
#if defined(__sparc__) && defined(__arch64__)
|
2008-07-28 05:00:59 +08:00
|
|
|
#include <asm/uaccess_64.h>
|
2008-07-18 12:55:51 +08:00
|
|
|
#else
|
2008-07-28 05:00:59 +08:00
|
|
|
#include <asm/uaccess_32.h>
|
2008-07-18 12:55:51 +08:00
|
|
|
#endif
|
2012-05-23 08:53:19 +08:00
|
|
|
|
2012-05-24 10:56:06 +08:00
|
|
|
#define user_addr_max() \
|
2012-05-25 04:41:58 +08:00
|
|
|
(segment_eq(get_fs(), USER_DS) ? TASK_SIZE : ~0UL)
|
2012-05-24 10:56:06 +08:00
|
|
|
|
2014-05-17 05:25:50 +08:00
|
|
|
long strncpy_from_user(char *dest, const char __user *src, long count);
|
2012-05-23 08:53:19 +08:00
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
#endif
|