X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-i386%2Fmach-xen%2Fasm%2Fpgtable-3level.h;fp=include%2Fasm-i386%2Fmach-xen%2Fasm%2Fpgtable-3level.h;h=7c3c36b2866839b81e3cf0bc9db8c9f65a7dd8b7;hb=16c70f8c1b54b61c3b951b6fb220df250fe09b32;hp=f41b15b92a8c6fb505b416faca27bb976950b579;hpb=4e76c8a9fa413ccc09d3f7f664183dcce3555d57;p=linux-2.6.git diff --git a/include/asm-i386/mach-xen/asm/pgtable-3level.h b/include/asm-i386/mach-xen/asm/pgtable-3level.h index f41b15b92..7c3c36b28 100644 --- a/include/asm-i386/mach-xen/asm/pgtable-3level.h +++ b/include/asm-i386/mach-xen/asm/pgtable-3level.h @@ -119,7 +119,7 @@ static inline void pte_clear(struct mm_struct *mm, unsigned long addr, pte_t *pt ptep->pte_high = 0; } -#define pmd_clear(xp)do { set_pmd(xp, __pmd(0)); } while (0) +#define pmd_clear(xp) do { set_pmd(xp, __pmd(0)); } while (0) static inline pte_t ptep_get_and_clear(struct mm_struct *mm, unsigned long addr, pte_t *ptep) { @@ -151,18 +151,6 @@ static inline int pte_none(pte_t pte) extern unsigned long long __supported_pte_mask; -static inline pte_t pfn_pte_ma(unsigned long page_nr, pgprot_t pgprot) -{ - pte_t pte; - - pte.pte_high = (page_nr >> (32 - PAGE_SHIFT)) | \ - (pgprot_val(pgprot) >> 32); - pte.pte_high &= (__supported_pte_mask >> 32); - pte.pte_low = ((page_nr << PAGE_SHIFT) | pgprot_val(pgprot)) & \ - __supported_pte_mask; - return pte; -} - static inline pte_t pfn_pte(unsigned long page_nr, pgprot_t pgprot) { return pfn_pte_ma(pfn_to_mfn(page_nr), pgprot);