diff options
| -rw-r--r-- | include/asm-x86/pgtable.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/asm-x86/pgtable.h b/include/asm-x86/pgtable.h index ed932453ef26..e9f10af50f49 100644 --- a/include/asm-x86/pgtable.h +++ b/include/asm-x86/pgtable.h | |||
| @@ -138,8 +138,13 @@ | |||
| 138 | #ifdef CONFIG_X86_64 | 138 | #ifdef CONFIG_X86_64 |
| 139 | #define __PAGE_KERNEL_IDENT_LARGE_EXEC __PAGE_KERNEL_LARGE_EXEC | 139 | #define __PAGE_KERNEL_IDENT_LARGE_EXEC __PAGE_KERNEL_LARGE_EXEC |
| 140 | #else | 140 | #else |
| 141 | /* | ||
| 142 | * For PDE_IDENT_ATTR include USER bit. As the PDE and PTE protection | ||
| 143 | * bits are combined, this will alow user to access the high address mapped | ||
| 144 | * VDSO in the presence of CONFIG_COMPAT_VDSO | ||
| 145 | */ | ||
| 141 | #define PTE_IDENT_ATTR 0x003 /* PRESENT+RW */ | 146 | #define PTE_IDENT_ATTR 0x003 /* PRESENT+RW */ |
| 142 | #define PDE_IDENT_ATTR 0x063 /* PRESENT+RW+DIRTY+ACCESSED */ | 147 | #define PDE_IDENT_ATTR 0x067 /* PRESENT+RW+USER+DIRTY+ACCESSED */ |
| 143 | #define PGD_IDENT_ATTR 0x001 /* PRESENT (no other attributes) */ | 148 | #define PGD_IDENT_ATTR 0x001 /* PRESENT (no other attributes) */ |
| 144 | #endif | 149 | #endif |
| 145 | 150 | ||
