aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86_64
diff options
context:
space:
mode:
authorAndi Kleen <ak@suse.de>2005-05-17 00:53:20 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-17 10:59:13 -0400
commit637716a3825e186555361574aa1fa3c0ebf8018b (patch)
tree84401d191be109af6eaf2bbf9ad5ae4b6be1260a /include/asm-x86_64
parent10ffdbb8d605be88b148f127ec86452f1364d4f0 (diff)
[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>
Diffstat (limited to 'include/asm-x86_64')
-rw-r--r--include/asm-x86_64/processor.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-x86_64/processor.h b/include/asm-x86_64/processor.h
index f0581c35628e..9f74a286ef11 100644
--- a/include/asm-x86_64/processor.h
+++ b/include/asm-x86_64/processor.h
@@ -159,9 +159,9 @@ static inline void clear_in_cr4 (unsigned long mask)
159 159
160 160
161/* 161/*
162 * User space process size. 47bits. 162 * User space process size. 47bits minus one guard page.
163 */ 163 */
164#define TASK_SIZE (0x800000000000UL) 164#define TASK_SIZE (0x800000000000UL - 4096)
165 165
166/* This decides where the kernel will search for a free chunk of vm 166/* This decides where the kernel will search for a free chunk of vm
167 * space during mmap's. 167 * space during mmap's.