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