diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2009-04-26 02:09:13 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2009-04-26 02:09:13 -0700 |
commit | 88ab4bb257265cee555baafb940cee42c12f159a (patch) | |
tree | 93c5bd57602f49fbddcdd7fc1d0430d93dcd21fa /src/dev/x86/i82094aa.hh | |
parent | c5e2cf841d2502479a8f00c20ab70ab9ae325d69 (diff) | |
download | gem5-88ab4bb257265cee555baafb940cee42c12f159a.tar.xz |
X86: Make the local APICs register themselves with the IO APIC.
This is a hack so that the IO APIC can figure out information about the local
APICs. The local APICs still have no way to find out about each other.
Ideally, when the local APICs update state that's relevant to somebody else,
they'd send an update to everyone. Without being able to do a broadcast, that
would still require knowing who else there is to notify. Other broadcasts are
implemented using assumptions that may not always be true.
Diffstat (limited to 'src/dev/x86/i82094aa.hh')
-rw-r--r-- | src/dev/x86/i82094aa.hh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dev/x86/i82094aa.hh b/src/dev/x86/i82094aa.hh index 7501259c1..e81d85fa9 100644 --- a/src/dev/x86/i82094aa.hh +++ b/src/dev/x86/i82094aa.hh @@ -37,10 +37,13 @@ #include "dev/x86/intdev.hh" #include "params/I82094AA.hh" +#include <map> + namespace X86ISA { class I8259; +class Interrupts; class I82094AA : public PioDevice, public IntDev { @@ -67,6 +70,8 @@ class I82094AA : public PioDevice, public IntDev I8259 * extIntPic; + std::map<int, Interrupts *> localApics; + uint8_t regSel; uint8_t initialApicId; uint8_t id; @@ -122,6 +127,7 @@ class I82094AA : public PioDevice, public IntDev void signalInterrupt(int line); void raiseInterruptPin(int number); void lowerInterruptPin(int number); + void registerLocalApic(int id, Interrupts *localApic); }; }; // namespace X86ISA |