summaryrefslogtreecommitdiffstats
path: root/arch/sparc/include/asm/uaccess.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc/include/asm/uaccess.h')
-rw-r--r--arch/sparc/include/asm/uaccess.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/uaccess.h b/arch/sparc/include/asm/uaccess.h
index 42a28cfd941f..20c2acb06332 100644
--- a/arch/sparc/include/asm/uaccess.h
+++ b/arch/sparc/include/asm/uaccess.h
@@ -6,6 +6,9 @@
#include <asm/uaccess_32.h>
#endif
+#define user_addr_max() \
+ (segment_eq(get_fs(), USER_DS) ? STACK_TOP : ~0UL)
+
extern long strncpy_from_user(char *dest, const char __user *src, long count);
#endif