Commit a5ae1c37 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Ingo Molnar

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: default avatarCyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 0054f4b7
...@@ -870,7 +870,7 @@ extern unsigned long thread_saved_pc(struct task_struct *tsk); ...@@ -870,7 +870,7 @@ extern unsigned long thread_saved_pc(struct task_struct *tsk);
/* /*
* User space process size. 47bits minus one guard page. * 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 /* This decides where the kernel will search for a free chunk of vm
* space during mmap's. * space during mmap's.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment