diff options
author | Jeremy Fitzhardinge <jeremy@goop.org> | 2008-07-21 22:59:56 -0700 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-22 10:43:45 +0200 |
commit | 77be1fabd024b37423d12f832b1fbdb95dbdf494 (patch) | |
tree | b1fa99ff9b1c0bcb63c7a602a425d72b24c1ede6 /include/asm-x86/pgtable.h | |
parent | 59438c9fc4f7a92c808c9049bc6b396f98bf954c (diff) | |
download | talos-op-linux-77be1fabd024b37423d12f832b1fbdb95dbdf494.tar.gz talos-op-linux-77be1fabd024b37423d12f832b1fbdb95dbdf494.zip |
x86: add PTE_FLAGS_MASK
PTE_PFN_MASK was getting lonely, so I made it a friend.
Signed-off-by: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/pgtable.h')
-rw-r--r-- | include/asm-x86/pgtable.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-x86/pgtable.h b/include/asm-x86/pgtable.h index 2b1746c92370..3e5dbc4195f4 100644 --- a/include/asm-x86/pgtable.h +++ b/include/asm-x86/pgtable.h @@ -286,7 +286,7 @@ static inline pgprot_t pgprot_modify(pgprot_t oldprot, pgprot_t newprot) return __pgprot(preservebits | addbits); } -#define pte_pgprot(x) __pgprot(pte_flags(x) & ~PTE_PFN_MASK) +#define pte_pgprot(x) __pgprot(pte_flags(x) & PTE_FLAGS_MASK) #define canon_pgprot(p) __pgprot(pgprot_val(p) & __supported_pte_mask) |