Skip to content

Commit

Permalink
[PATCH] x86_64: Add a guard page at the end of the 47bit address space
Browse files Browse the repository at this point in the history
This works around a bug in the AMD K8 CPUs.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed May 17, 2005
1 parent 10ffdbb commit 637716a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/asm-x86_64/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ static inline void clear_in_cr4 (unsigned long mask)


/*
* User space process size. 47bits.
* User space process size. 47bits minus one guard page.
*/
#define TASK_SIZE (0x800000000000UL)
#define TASK_SIZE (0x800000000000UL - 4096)

/* This decides where the kernel will search for a free chunk of vm
* space during mmap's.
Expand Down

0 comments on commit 637716a

Please sign in to comment.