Re: [PATCH 5 of 8] x86: use PTE_MASK in pgtable_32.h

From: Thomas Gleixner
Date: Fri May 09 2008 - 11:36:16 EST


On Fri, 9 May 2008, Jeremy Fitzhardinge wrote:

> ---
> include/asm-x86/pgtable_32.h | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/include/asm-x86/pgtable_32.h b/include/asm-x86/pgtable_32.h
> --- a/include/asm-x86/pgtable_32.h
> +++ b/include/asm-x86/pgtable_32.h
> @@ -98,9 +98,9 @@
> extern int pmd_bad(pmd_t pmd);
>
> #define pmd_bad_v1(x) \
> - (_KERNPG_TABLE != (pmd_val((x)) & ~(PAGE_MASK | _PAGE_USER)))
> + (_KERNPG_TABLE != (pmd_val((x)) & ~(PTE_MASK | _PAGE_USER)))
> #define pmd_bad_v2(x) \
> - (_KERNPG_TABLE != (pmd_val((x)) & ~(PAGE_MASK | _PAGE_USER | \
> + (_KERNPG_TABLE != (pmd_val((x)) & ~(PTE_MASK | _PAGE_USER | \

that's gone from mainline already. Hugh's patch restored the old pmd_bad check.

Thanks,
tglx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/