summaryrefslogtreecommitdiffstats
path: root/include/asm-x86/uaccess_32.h
diff options
context:
space:
mode:
authorGlauber Costa2008-06-14 02:01:46 +0200
committerIngo Molnar2008-07-09 09:14:17 +0200
commitbe9d06bfd48934fbd56ccb7476eabccfa31b4afe (patch)
tree9c27b37dcb03c2e75996d2f0084eff2541d43c26 /include/asm-x86/uaccess_32.h
parentx86: use long instead of int. (diff)
downloadkernel-qcow2-linux-be9d06bfd48934fbd56ccb7476eabccfa31b4afe.tar.gz
kernel-qcow2-linux-be9d06bfd48934fbd56ccb7476eabccfa31b4afe.tar.xz
kernel-qcow2-linux-be9d06bfd48934fbd56ccb7476eabccfa31b4afe.zip
x86: use something common for both architectures.
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>
Diffstat (limited to 'include/asm-x86/uaccess_32.h')
-rw-r--r--include/asm-x86/uaccess_32.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-x86/uaccess_32.h b/include/asm-x86/uaccess_32.h
index eed8d9422b4d..2676b48ac0fa 100644
--- a/include/asm-x86/uaccess_32.h
+++ b/include/asm-x86/uaccess_32.h
@@ -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)