X86: Hook up the IDE controller interrupt line.
authorGabe Black <gblack@eecs.umich.edu>
Sun, 1 Feb 2009 08:25:15 +0000 (00:25 -0800)
committerGabe Black <gblack@eecs.umich.edu>
Sun, 1 Feb 2009 08:25:15 +0000 (00:25 -0800)
src/dev/x86/SouthBridge.py
src/dev/x86/pc.cc

index be927614536749fc69a657022e75e36750b8876c..8d766471e05b3536f7d1bc87a5c15a9976fb1bc7 100644 (file)
@@ -87,6 +87,7 @@ class SouthBridge(SimObject):
     ide.BAR3LegacyIO = True
     ide.BAR4 = 1
     ide.Command = 1
+    ide.InterruptLine = 20
 
     def attachIO(self, bus):
         # Route interupt signals
index 3dfa50d7ff0bf4b6d0e70eb03ce9778673518991..5005bd2966391053b5f8e297ef50a7afb622ec00 100644 (file)
@@ -127,13 +127,13 @@ Pc::clearConsoleInt()
 void
 Pc::postPciInt(int line)
 {
-    panic("Need implementation\n");
+    southBridge->ioApic->signalInterrupt(line);
 }
 
 void
 Pc::clearPciInt(int line)
 {
-    panic("Need implementation\n");
+    warn_once("Tried to clear PCI interrupt %d\n", line);
 }
 
 Addr