summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndi Kleen <ak@suse.de>2005-05-17 04:53:20 +0000
committer <chrisw@vas.sous-sol.org>2005-05-26 21:20:11 -0700
commitb80f032f5c5713fdfccfd0005b0e3078f32596b2 (patch)
tree5196844f0e40605cba37b9111a8036b5bb7a4c68
parentf51f3c46d7deaf3b957fefdce0c7e55d930f1c9f (diff)
downloadlinux-stable-b80f032f5c5713fdfccfd0005b0e3078f32596b2.tar.gz
linux-stable-b80f032f5c5713fdfccfd0005b0e3078f32596b2.tar.bz2
linux-stable-b80f032f5c5713fdfccfd0005b0e3078f32596b2.zip
[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>
-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 6dadc6400319..31e8d82ce007 100644
--- a/include/asm-x86_64/processor.h
+++ b/include/asm-x86_64/processor.h
@@ -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.