aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorHuang, Ying <ying.huang@intel.com>2008-01-31 16:05:45 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-31 16:05:45 -0500
commit1fd6a53ddc75d02ad0f363cb42f2a1cec6b701c2 (patch)
tree2bf1f98a0b819949a6842f0441acb66c87a048d2 /arch
parentd4387bd3fa1d27e03bc87533c1650e24417c8016 (diff)
x86: early_ioremap_reset fix 2
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/mm/ioremap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/mm/ioremap.c b/arch/x86/mm/ioremap.c
index ed795721ca8e..a177d76e1c53 100644
--- a/arch/x86/mm/ioremap.c
+++ b/arch/x86/mm/ioremap.c
@@ -340,7 +340,7 @@ void __init early_ioremap_reset(void)
340 for (idx = FIX_BTMAP_BEGIN; idx >= FIX_BTMAP_END; idx--) { 340 for (idx = FIX_BTMAP_BEGIN; idx >= FIX_BTMAP_END; idx--) {
341 addr = fix_to_virt(idx); 341 addr = fix_to_virt(idx);
342 pte = early_ioremap_pte(addr); 342 pte = early_ioremap_pte(addr);
343 if (!*pte & _PAGE_PRESENT) { 343 if (*pte & _PAGE_PRESENT) {
344 phys = *pte & PAGE_MASK; 344 phys = *pte & PAGE_MASK;
345 set_fixmap(idx, phys); 345 set_fixmap(idx, phys);
346 } 346 }