aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/apic/io_apic.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/apic/io_apic.c')
-rw-r--r--arch/x86/kernel/apic/io_apic.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c
index 20ea8392bc57..ff237199fa23 100644
--- a/arch/x86/kernel/apic/io_apic.c
+++ b/arch/x86/kernel/apic/io_apic.c
@@ -4100,18 +4100,17 @@ void __init ioapic_init_mappings(void)
4100#ifdef CONFIG_X86_32 4100#ifdef CONFIG_X86_32
4101fake_ioapic_page: 4101fake_ioapic_page:
4102#endif 4102#endif
4103 ioapic_phys = (unsigned long) 4103 ioapic_phys = (unsigned long)alloc_bootmem_pages(PAGE_SIZE);
4104 alloc_bootmem_pages(PAGE_SIZE);
4105 ioapic_phys = __pa(ioapic_phys); 4104 ioapic_phys = __pa(ioapic_phys);
4106 } 4105 }
4107 set_fixmap_nocache(idx, ioapic_phys); 4106 set_fixmap_nocache(idx, ioapic_phys);
4108 apic_printk(APIC_VERBOSE, 4107 apic_printk(APIC_VERBOSE, "mapped IOAPIC to %08lx (%08lx)\n",
4109 "mapped IOAPIC to %08lx (%08lx)\n", 4108 __fix_to_virt(idx) + (ioapic_phys & ~PAGE_MASK),
4110 __fix_to_virt(idx), ioapic_phys); 4109 ioapic_phys);
4111 idx++; 4110 idx++;
4112 4111
4113 ioapic_res->start = ioapic_phys; 4112 ioapic_res->start = ioapic_phys;
4114 ioapic_res->end = ioapic_phys + PAGE_SIZE-1; 4113 ioapic_res->end = ioapic_phys + IO_APIC_SLOT_SIZE - 1;
4115 ioapic_res++; 4114 ioapic_res++;
4116 } 4115 }
4117} 4116}