X86: Keep track of the pioAddr for the local APIC.
authorGabe Black <gblack@eecs.umich.edu>
Sun, 19 Apr 2009 10:47:12 +0000 (03:47 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Sun, 19 Apr 2009 10:47:12 +0000 (03:47 -0700)
src/arch/x86/interrupts.cc

index 7f47b39c13b021731da54186b49d4bcf181e81bd..a0ce30ad7caf6a83dc6620eb07f99ddd6ea2784e 100644 (file)
@@ -338,8 +338,10 @@ X86ISA::Interrupts::addressRanges(AddrRangeList &range_list)
 {
     uint8_t id = (regs[APIC_ID] >> 24);
     range_list.clear();
-    range_list.push_back(RangeEx(x86LocalAPICAddress(id, 0),
-                                 x86LocalAPICAddress(id, 0) + PageBytes));
+    Range<Addr> range = RangeEx(x86LocalAPICAddress(id, 0),
+                                x86LocalAPICAddress(id, 0) + PageBytes);
+    range_list.push_back(range);
+    pioAddr = range.start;
 }