提交 637716a3 编写于 作者: A Andi Kleen 提交者: Linus Torvalds

[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: NAndi Kleen <ak@suse.de>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 10ffdbb8
......@@ -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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册