sparc: Increase portability of strncpy_from_user() implementation.
[deliverable/linux.git] / arch / sparc / include / asm / uaccess.h
index 42a28cfd941f4294e2a23ca3fa7f573a17836a8d..20c2acb06332f6a9a6f1d188167e2867d5c8b520 100644 (file)
@@ -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
This page took 0.024547 seconds and 5 git commands to generate.