MIPS: Make TASK_SIZE reflect proper size for both 32 and 64 bit processes.
[linux-2.6.git] / arch / mips / include / asm / uaccess.h
index c2d53c1..653a412 100644 (file)
@@ -35,7 +35,9 @@
 
 #ifdef CONFIG_64BIT
 
-#define __UA_LIMIT     (- TASK_SIZE)
+extern u64 __ua_limit;
+
+#define __UA_LIMIT     __ua_limit
 
 #define __UA_ADDR      ".dword"
 #define __UA_LA                "dla"