Commit | Line | Data |
---|---|---|
f5e706ad SR |
1 | #ifndef ___ASM_SPARC_UACCESS_H |
2 | #define ___ASM_SPARC_UACCESS_H | |
3 | #if defined(__sparc__) && defined(__arch64__) | |
a439fe51 | 4 | #include <asm/uaccess_64.h> |
f5e706ad | 5 | #else |
a439fe51 | 6 | #include <asm/uaccess_32.h> |
f5e706ad | 7 | #endif |
ff06dffb | 8 | |
35c96460 DM |
9 | #define user_addr_max() \ |
10 | (segment_eq(get_fs(), USER_DS) ? STACK_TOP : ~0UL) | |
11 | ||
ff06dffb DM |
12 | extern long strncpy_from_user(char *dest, const char __user *src, long count); |
13 | ||
1da177e4 | 14 | #endif |