diff options
-rw-r--r-- | arch/sparc/include/asm/processor_64.h | 4 | ||||
-rw-r--r-- | arch/sparc/include/asm/uaccess.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/arch/sparc/include/asm/processor_64.h b/arch/sparc/include/asm/processor_64.h index e713db249931..6ca7709971d2 100644 --- a/arch/sparc/include/asm/processor_64.h +++ b/arch/sparc/include/asm/processor_64.h | |||
@@ -42,7 +42,9 @@ | |||
42 | #define TASK_SIZE_OF(tsk) \ | 42 | #define TASK_SIZE_OF(tsk) \ |
43 | (test_tsk_thread_flag(tsk,TIF_32BIT) ? \ | 43 | (test_tsk_thread_flag(tsk,TIF_32BIT) ? \ |
44 | (1UL << 32UL) : ((unsigned long)-VPTE_SIZE)) | 44 | (1UL << 32UL) : ((unsigned long)-VPTE_SIZE)) |
45 | #define TASK_SIZE TASK_SIZE_OF(current) | 45 | #define TASK_SIZE \ |
46 | (test_thread_flag(TIF_32BIT) ? \ | ||
47 | (1UL << 32UL) : ((unsigned long)-VPTE_SIZE)) | ||
46 | #ifdef __KERNEL__ | 48 | #ifdef __KERNEL__ |
47 | 49 | ||
48 | #define STACK_TOP32 ((1UL << 32UL) - PAGE_SIZE) | 50 | #define STACK_TOP32 ((1UL << 32UL) - PAGE_SIZE) |
diff --git a/arch/sparc/include/asm/uaccess.h b/arch/sparc/include/asm/uaccess.h index 20c2acb06332..0167d26d0d1d 100644 --- a/arch/sparc/include/asm/uaccess.h +++ b/arch/sparc/include/asm/uaccess.h | |||
@@ -7,7 +7,7 @@ | |||
7 | #endif | 7 | #endif |
8 | 8 | ||
9 | #define user_addr_max() \ | 9 | #define user_addr_max() \ |
10 | (segment_eq(get_fs(), USER_DS) ? STACK_TOP : ~0UL) | 10 | (segment_eq(get_fs(), USER_DS) ? TASK_SIZE : ~0UL) |
11 | 11 | ||
12 | extern long strncpy_from_user(char *dest, const char __user *src, long count); | 12 | extern long strncpy_from_user(char *dest, const char __user *src, long count); |
13 | 13 | ||