Sam Ravnborg | a439fe5 | 2008-07-27 23:00:59 +0200 | [diff] [blame] | 1 | #ifndef ___ASM_SPARC_UACCESS_H |
| 2 | #define ___ASM_SPARC_UACCESS_H |
| 3 | #if defined(__sparc__) && defined(__arch64__) |
| 4 | #include <asm/uaccess_64.h> |
| 5 | #else |
| 6 | #include <asm/uaccess_32.h> |
| 7 | #endif |
David S. Miller | ff06dff | 2012-05-22 17:53:19 -0700 | [diff] [blame] | 8 | |
David S. Miller | 35c9646 | 2012-05-23 19:56:06 -0700 | [diff] [blame] | 9 | #define user_addr_max() \ |
David S. Miller | c538983 | 2012-05-24 13:41:58 -0700 | [diff] [blame] | 10 | (segment_eq(get_fs(), USER_DS) ? TASK_SIZE : ~0UL) |
David S. Miller | 35c9646 | 2012-05-23 19:56:06 -0700 | [diff] [blame] | 11 | |
Sam Ravnborg | f05a686 | 2014-05-16 23:25:50 +0200 | [diff] [blame^] | 12 | long strncpy_from_user(char *dest, const char __user *src, long count); |
David S. Miller | ff06dff | 2012-05-22 17:53:19 -0700 | [diff] [blame] | 13 | |
Sam Ravnborg | a439fe5 | 2008-07-27 23:00:59 +0200 | [diff] [blame] | 14 | #endif |