From: Cyrill Gorcunov Date: Thu, 13 Mar 2008 16:44:56 +0000 (+0300) Subject: x86: processor.h - use PAGE_SIZE instead of numeric value X-Git-Tag: v2.6.26-rc1~1154^2~298 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5ae1c372dc5bbaee905bcede524d7180d22b362;p=linux-2.6 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 Signed-off-by: Ingo Molnar --- diff --git a/include/asm-x86/processor.h b/include/asm-x86/processor.h index 40227c9bf5..b0dece41db 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); /* * User space process size. 47bits minus one guard page. */ -#define TASK_SIZE64 (0x800000000000UL - 4096) +#define TASK_SIZE64 ((1UL << 47) - PAGE_SIZE) /* This decides where the kernel will search for a free chunk of vm * space during mmap's.