x86: early_ioremap_reset fix 2
authorHuang, Ying <ying.huang@intel.com>
Thu, 31 Jan 2008 21:05:45 +0000 (22:05 +0100)
committerIngo Molnar <mingo@elte.hu>
Thu, 31 Jan 2008 21:05:45 +0000 (22:05 +0100)
This patch fixes a bug of early_ioremap_reset(), which had been fixed
before by "convert the boot time page table to the kernels native
format" patch. But that patch has been reverted now.

Signed-off-by: Huang Ying <ying.huang@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/ioremap.c

index ed795721ca8ea2e9d81c4b2dbca082efb2262126..a177d76e1c53c2c3d01a61cbc94ad86e43cda8c5 100644 (file)
@@ -340,7 +340,7 @@ void __init early_ioremap_reset(void)
        for (idx = FIX_BTMAP_BEGIN; idx >= FIX_BTMAP_END; idx--) {
                addr = fix_to_virt(idx);
                pte = early_ioremap_pte(addr);
-               if (!*pte & _PAGE_PRESENT) {
+               if (*pte & _PAGE_PRESENT) {
                        phys = *pte & PAGE_MASK;
                        set_fixmap(idx, phys);
                }