ia64/xen-unstable

changeset 9943:5afb14264629

Don't try to write to pmd pages, there is no writeable-pmd support.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Fri May 05 00:27:10 2006 +0100 (2006-05-05)
parents 8761333499ae
children 65a2cf84b335 3534801f08da
files linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/pgtable-3level.h
line diff
     1.1 --- a/linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/pgtable-3level.h	Thu May 04 21:24:39 2006 +0100
     1.2 +++ b/linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/pgtable-3level.h	Fri May 05 00:27:10 2006 +0100
     1.3 @@ -119,13 +119,7 @@ static inline void pte_clear(struct mm_s
     1.4  	ptep->pte_high = 0;
     1.5  }
     1.6  
     1.7 -static inline void pmd_clear(pmd_t *pmd)
     1.8 -{
     1.9 -	u32 *tmp = (u32 *)pmd;
    1.10 -	*tmp = 0;
    1.11 -	smp_wmb();
    1.12 -	*(tmp + 1) = 0;
    1.13 -}
    1.14 +#define pmd_clear(xp)	do { set_pmd(xp, __pmd(0)); } while (0)
    1.15  
    1.16  static inline pte_t ptep_get_and_clear(struct mm_struct *mm, unsigned long addr, pte_t *ptep)
    1.17  {