]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
f5e706ad SR |
2 | #ifndef ___ASM_SPARC_UACCESS_H |
3 | #define ___ASM_SPARC_UACCESS_H | |
4 | #if defined(__sparc__) && defined(__arch64__) | |
a439fe51 | 5 | #include <asm/uaccess_64.h> |
f5e706ad | 6 | #else |
a439fe51 | 7 | #include <asm/uaccess_32.h> |
f5e706ad | 8 | #endif |
ff06dffb | 9 | |
35c96460 | 10 | #define user_addr_max() \ |
db68ce10 | 11 | (uaccess_kernel() ? ~0UL : TASK_SIZE) |
35c96460 | 12 | |
f05a6865 | 13 | long strncpy_from_user(char *dest, const char __user *src, long count); |
ff06dffb | 14 | |
1da177e4 | 15 | #endif |