X86: Configure the first PCI interrupt.
This commit is contained in:
@@ -87,7 +87,8 @@ class SouthBridge(SimObject):
|
||||
ide.BAR3LegacyIO = True
|
||||
ide.BAR4 = 1
|
||||
ide.Command = 1
|
||||
ide.InterruptLine = 20
|
||||
ide.InterruptLine = 14
|
||||
ide.InterruptPin = 1
|
||||
|
||||
def attachIO(self, bus):
|
||||
# Route interupt signals
|
||||
|
||||
@@ -101,6 +101,12 @@ Pc::init()
|
||||
entry.vector = 0x2C;
|
||||
ioApic.writeReg(0x28, entry.bottomDW);
|
||||
ioApic.writeReg(0x29, entry.topDW);
|
||||
entry.vector = 0x2E;
|
||||
ioApic.writeReg(0x2C, entry.bottomDW);
|
||||
ioApic.writeReg(0x2D, entry.topDW);
|
||||
entry.vector = 0x30;
|
||||
ioApic.writeReg(0x30, entry.bottomDW);
|
||||
ioApic.writeReg(0x31, entry.topDW);
|
||||
}
|
||||
|
||||
Tick
|
||||
|
||||
Reference in New Issue
Block a user