aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/pgtable_64.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-03-03 07:55:32 -0500
committerIngo Molnar <mingo@elte.hu>2008-04-17 11:40:52 -0400
commit40869cd038a0ecb867a7227aba46806224e4d11d (patch)
treea51c2bf4358a1507370a689759ed554562e85812 /include/asm-x86/pgtable_64.h
parentba748d221eb74b849453a94fdf0e1d0566b407d7 (diff)
x86: redo cded932b75ab0a5f9181e
redo commit cded932b75ab0a5f9181e. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/pgtable_64.h')
-rw-r--r--include/asm-x86/pgtable_64.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/asm-x86/pgtable_64.h b/include/asm-x86/pgtable_64.h
index 6ef09914acbe..0a5081c98ae1 100644
--- a/include/asm-x86/pgtable_64.h
+++ b/include/asm-x86/pgtable_64.h
@@ -153,12 +153,14 @@ static inline unsigned long pgd_bad(pgd_t pgd)
153 153
154static inline unsigned long pud_bad(pud_t pud) 154static inline unsigned long pud_bad(pud_t pud)
155{ 155{
156 return pud_val(pud) & ~(PTE_MASK | _KERNPG_TABLE | _PAGE_USER); 156 return pud_val(pud) &
157 ~(PTE_MASK | _KERNPG_TABLE | _PAGE_USER | _PAGE_PSE | _PAGE_NX);
157} 158}
158 159
159static inline unsigned long pmd_bad(pmd_t pmd) 160static inline unsigned long pmd_bad(pmd_t pmd)
160{ 161{
161 return pmd_val(pmd) & ~(PTE_MASK | _KERNPG_TABLE | _PAGE_USER); 162 return pmd_val(pmd) &
163 ~(PTE_MASK | _KERNPG_TABLE | _PAGE_USER | _PAGE_PSE | _PAGE_NX);
162} 164}
163 165
164#define pte_none(x) (!pte_val(x)) 166#define pte_none(x) (!pte_val(x))