Skip to content

Commit

Permalink
x86: processor.h - use PAGE_SIZE instead of numeric value
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Cyrill Gorcunov authored and Ingo Molnar committed Apr 17, 2008
1 parent 0054f4b commit a5ae1c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/asm-x86/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a5ae1c3

Please sign in to comment.