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