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