[PATCH] x86_64: Add a guard page at the end of the 47bit address space

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>
Signed-off-by: Chris Wright <chrisw@osdl.org>
This commit is contained in:
Andi Kleen 2005-05-17 04:53:20 +00:00 committed by
parent f51f3c46d7
commit b80f032f5c
1 changed files with 2 additions and 2 deletions

View File

@ -160,9 +160,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.