x86: another user of PTE_FLAGS_MASK
authorJeremy Fitzhardinge <jeremy@goop.org>
Tue, 19 Aug 2008 20:10:07 +0000 (13:10 -0700)
committerIngo Molnar <mingo@elte.hu>
Wed, 20 Aug 2008 10:38:41 +0000 (12:38 +0200)
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/dump_pagetables.c

index a20d1fa..e7277cb 100644 (file)
@@ -148,8 +148,8 @@ static void note_page(struct seq_file *m, struct pg_state *st,
         * we have now. "break" is either changing perms, levels or
         * address space marker.
         */
-       prot = pgprot_val(new_prot) & ~(PTE_PFN_MASK);
-       cur = pgprot_val(st->current_prot) & ~(PTE_PFN_MASK);
+       prot = pgprot_val(new_prot) & PTE_FLAGS_MASK;
+       cur = pgprot_val(st->current_prot) & PTE_FLAGS_MASK;
 
        if (!st->level) {
                /* First entry */