aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/processor.h
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2008-03-13 12:44:56 -0400
committerIngo Molnar <mingo@elte.hu>2008-04-17 11:41:19 -0400
commita5ae1c372dc5bbaee905bcede524d7180d22b362 (patch)
tree203a7b07b7bdbcfb866068f00e7577e5f1273eef /include/asm-x86/processor.h
parent0054f4b708d21bd0032480cf7309d17753bc17bb (diff)
x86: processor.h - use PAGE_SIZE instead of numeric value
This patch replaces numeric constant with an appropriate macro Also 0x800000000000UL is changed to bit shifting which is complement to the code comment (thanks hpa for notice) Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/processor.h')
-rw-r--r--include/asm-x86/processor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-x86/processor.h b/include/asm-x86/processor.h
index 40227c9bf51b..b0dece41dbc4 100644
--- a/include/asm-x86/processor.h
+++ b/include/asm-x86/processor.h
@@ -870,7 +870,7 @@ extern unsigned long thread_saved_pc(struct task_struct *tsk);
870/* 870/*
871 * User space process size. 47bits minus one guard page. 871 * User space process size. 47bits minus one guard page.
872 */ 872 */
873#define TASK_SIZE64 (0x800000000000UL - 4096) 873#define TASK_SIZE64 ((1UL << 47) - PAGE_SIZE)
874 874
875/* This decides where the kernel will search for a free chunk of vm 875/* This decides where the kernel will search for a free chunk of vm
876 * space during mmap's. 876 * space during mmap's.