ia64/xen-unstable

changeset 2612:2859a2041ab0

bitkeeper revision 1.1159.1.212 (416485874bmgh8xNVGGY3ZNzyzd9QQ)

Make pmd_present test correct in writable pagetables mode.
author cl349@freefall.cl.cam.ac.uk
date Wed Oct 06 23:53:43 2004 +0000 (2004-10-06)
parents e442cedb12d8
children e1abd8945ded 7087c7a9ca76
files linux-2.6.8.1-xen-sparse/include/asm-xen/asm-i386/pgtable.h
line diff
     1.1 --- a/linux-2.6.8.1-xen-sparse/include/asm-xen/asm-i386/pgtable.h	Wed Oct 06 14:03:33 2004 +0000
     1.2 +++ b/linux-2.6.8.1-xen-sparse/include/asm-xen/asm-i386/pgtable.h	Wed Oct 06 23:53:43 2004 +0000
     1.3 @@ -211,7 +211,9 @@ extern unsigned long pg0[];
     1.4  #define pte_clear(xp)	do { set_pte(xp, __pte(0)); } while (0)
     1.5  
     1.6  #define pmd_none(x)	(!pmd_val(x))
     1.7 -#define pmd_present(x)	(pmd_val(x) & _PAGE_PRESENT)
     1.8 +/* pmd_present doesn't just test the _PAGE_PRESENT bit since wr.p.t.
     1.9 +   can temporarily clear it. */
    1.10 +#define pmd_present(x)	(pmd_val(x))
    1.11  /* pmd_clear below */
    1.12  #define	pmd_bad(x)	((pmd_val(x) & (~PAGE_MASK & ~_PAGE_USER & ~_PAGE_PRESENT)) != (_KERNPG_TABLE & ~_PAGE_PRESENT))
    1.13