X86: Keep track of the pioAddr for the local APIC.

This commit is contained in:
Gabe Black 2009-04-19 03:47:12 -07:00
parent 038225a6ca
commit 8761057c78

View 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;
}