diff options
author | Glauber Costa <gcosta@redhat.com> | 2008-06-13 20:01:46 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-09 03:14:17 -0400 |
commit | be9d06bfd48934fbd56ccb7476eabccfa31b4afe (patch) | |
tree | 9c27b37dcb03c2e75996d2f0084eff2541d43c26 /include | |
parent | 1dc186e82c1ab476ef83080adca43a70969b01cd (diff) |
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')
-rw-r--r-- | include/asm-x86/uaccess_32.h | 2 | ||||
-rw-r--r-- | include/asm-x86/uaccess_64.h | 2 |
2 files changed, 2 insertions, 2 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 @@ | |||
25 | #define MAKE_MM_SEG(s) ((mm_segment_t) { (s) }) | 25 | #define MAKE_MM_SEG(s) ((mm_segment_t) { (s) }) |
26 | 26 | ||
27 | 27 | ||
28 | #define KERNEL_DS MAKE_MM_SEG(0xFFFFFFFFUL) | 28 | #define KERNEL_DS MAKE_MM_SEG(-1UL) |
29 | #define USER_DS MAKE_MM_SEG(PAGE_OFFSET) | 29 | #define USER_DS MAKE_MM_SEG(PAGE_OFFSET) |
30 | 30 | ||
31 | #define get_ds() (KERNEL_DS) | 31 | #define get_ds() (KERNEL_DS) |
diff --git a/include/asm-x86/uaccess_64.h b/include/asm-x86/uaccess_64.h index 0077dbe9359e..3a81775136c8 100644 --- a/include/asm-x86/uaccess_64.h +++ b/include/asm-x86/uaccess_64.h | |||
@@ -22,7 +22,7 @@ | |||
22 | 22 | ||
23 | #define MAKE_MM_SEG(s) ((mm_segment_t) { (s) }) | 23 | #define MAKE_MM_SEG(s) ((mm_segment_t) { (s) }) |
24 | 24 | ||
25 | #define KERNEL_DS MAKE_MM_SEG(0xFFFFFFFFFFFFFFFFUL) | 25 | #define KERNEL_DS MAKE_MM_SEG(-1UL) |
26 | #define USER_DS MAKE_MM_SEG(PAGE_OFFSET) | 26 | #define USER_DS MAKE_MM_SEG(PAGE_OFFSET) |
27 | 27 | ||
28 | #define get_ds() (KERNEL_DS) | 28 | #define get_ds() (KERNEL_DS) |