Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 637716a3 authored by Andi Kleen's avatar Andi Kleen Committed by Linus Torvalds
Browse files

[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: default avatarAndi Kleen <ak@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 10ffdbb8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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.