diff options
author | Jeremy Fitzhardinge <jeremy@goop.org> | 2008-01-30 13:32:57 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 13:32:57 +0100 |
commit | 6fdc05d4794056e0b98901646c4b68c60a01d5eb (patch) | |
tree | a6cfb308becd6fe47c549084b29c3e9db3a07f68 /include/asm-x86/pgtable-2level.h | |
parent | x86: mask NX from pte_pfn (diff) | |
download | linux-6fdc05d4794056e0b98901646c4b68c60a01d5eb.tar.xz linux-6fdc05d4794056e0b98901646c4b68c60a01d5eb.zip |
x86: unify pgtable accessors which use
Make users of supported_pte_mask common. This has the side-effect of
introducing the variable for 32-bit non-PAE, but I think its a pretty
small cost to simplify the code.
Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-x86/pgtable-2level.h')
-rw-r--r-- | include/asm-x86/pgtable-2level.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/asm-x86/pgtable-2level.h b/include/asm-x86/pgtable-2level.h index 84b03cf56a79..d3171c0cb157 100644 --- a/include/asm-x86/pgtable-2level.h +++ b/include/asm-x86/pgtable-2level.h @@ -53,8 +53,6 @@ static inline pte_t native_ptep_get_and_clear(pte_t *xp) #define pte_page(x) pfn_to_page(pte_pfn(x)) #define pte_none(x) (!(x).pte_low) #define pte_pfn(x) (pte_val(x) >> PAGE_SHIFT) -#define pfn_pte(pfn, prot) __pte(((pfn) << PAGE_SHIFT) | pgprot_val(prot)) -#define pfn_pmd(pfn, prot) __pmd(((pfn) << PAGE_SHIFT) | pgprot_val(prot)) /* * All present pages are kernel-executable: |