Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[PATCH] x86_64: fix USER_PTRS_PER_PGD

The value, while currently unused in the native kernel, was off by one.

Signed-Off-By: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Jan Beulich and committed by
Linus Torvalds
f83f2b5f 60b08c67

+1 -1
+1 -1
include/asm-x86_64/pgtable.h
··· 131 131 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) 132 132 #define PGDIR_MASK (~(PGDIR_SIZE-1)) 133 133 134 - #define USER_PTRS_PER_PGD (TASK_SIZE/PGDIR_SIZE) 134 + #define USER_PTRS_PER_PGD ((TASK_SIZE-1)/PGDIR_SIZE+1) 135 135 #define FIRST_USER_ADDRESS 0 136 136 137 137 #ifndef __ASSEMBLY__