x86: use something common for both architectures.
authorGlauber Costa <gcosta@redhat.com>
Sat, 14 Jun 2008 00:01:46 +0000 (21:01 -0300)
committerIngo Molnar <mingo@elte.hu>
Wed, 9 Jul 2008 07:14:17 +0000 (09:14 +0200)
Using explicit hexa (0xFFFFFFUL) introduces an unnecessary difference
between i386 and x86_64 because of the size of their long. Use -1UL instead.

Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/asm-x86/uaccess_32.h
include/asm-x86/uaccess_64.h

index eed8d9422b4d57f78a5ecfb5a41f701566282184..2676b48ac0fa824a34edccbc7504180ad2db7c62 100644 (file)
@@ -25,7 +25,7 @@
 #define MAKE_MM_SEG(s) ((mm_segment_t) { (s) })
 
 
-#define KERNEL_DS      MAKE_MM_SEG(0xFFFFFFFFUL)
+#define KERNEL_DS      MAKE_MM_SEG(-1UL)
 #define USER_DS                MAKE_MM_SEG(PAGE_OFFSET)
 
 #define get_ds()       (KERNEL_DS)
index 0077dbe9359eac2e29c7e89234599a7ccd114f48..3a81775136c89b122ad9a6984edb50a9859e2b60 100644 (file)
@@ -22,7 +22,7 @@
 
 #define MAKE_MM_SEG(s) ((mm_segment_t) { (s) })
 
-#define KERNEL_DS      MAKE_MM_SEG(0xFFFFFFFFFFFFFFFFUL)
+#define KERNEL_DS      MAKE_MM_SEG(-1UL)
 #define USER_DS                MAKE_MM_SEG(PAGE_OFFSET)
 
 #define get_ds()       (KERNEL_DS)