changeset 1758d56964c9 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=1758d56964c9
description:
        X86: Set up the console interrupt and add some DPRINTFs.

diffstat:

2 files changed, 6 insertions(+), 3 deletions(-)
src/dev/x86/i8259.cc |    4 +++-
src/dev/x86/pc.cc    |    5 +++--

diffs (50 lines):

diff -r 2fdbb27f8c70 -r 1758d56964c9 src/dev/x86/i8259.cc
--- a/src/dev/x86/i8259.cc      Sat Jan 31 23:44:05 2009 -0800
+++ b/src/dev/x86/i8259.cc      Sat Jan 31 23:56:46 2009 -0800
@@ -242,7 +242,7 @@
 void
 X86ISA::I8259::signalInterrupt(int line)
 {
-    DPRINTF(I8259, "Interrupt raised on line %d.\n", line);
+    DPRINTF(I8259, "Interrupt requested for line %d.\n", line);
     if (line >= NumLines)
         fatal("Line number %d doesn't exist. The max is %d.\n",
                 line, NumLines - 1);
@@ -257,6 +257,7 @@
 void
 X86ISA::I8259::raiseInterruptPin(int number)
 {
+    DPRINTF(I8259, "Interrupt signal raised for pin %d.\n", number);
     if (number >= NumLines)
         fatal("Line number %d doesn't exist. The max is %d.\n",
                 number, NumLines - 1);
@@ -268,6 +269,7 @@
 void
 X86ISA::I8259::lowerInterruptPin(int number)
 {
+    DPRINTF(I8259, "Interrupt signal lowered for pin %d.\n", number);
     if (number >= NumLines)
         fatal("Line number %d doesn't exist. The max is %d.\n",
                 number, NumLines - 1);
diff -r 2fdbb27f8c70 -r 1758d56964c9 src/dev/x86/pc.cc
--- a/src/dev/x86/pc.cc Sat Jan 31 23:44:05 2009 -0800
+++ b/src/dev/x86/pc.cc Sat Jan 31 23:56:46 2009 -0800
@@ -42,6 +42,7 @@
 #include "dev/terminal.hh"
 #include "dev/x86/i82094aa.hh"
 #include "dev/x86/i8254.hh"
+#include "dev/x86/i8259.hh"
 #include "dev/x86/pc.hh"
 #include "dev/x86/south_bridge.hh"
 #include "sim/system.hh"
@@ -112,8 +113,8 @@
 void
 Pc::postConsoleInt()
 {
-    warn_once("Don't know what interrupt to post for console.\n");
-    //panic("Need implementation\n");
+    southBridge->ioApic->signalInterrupt(4);
+    southBridge->pic1->signalInterrupt(4);
 }
 
 void
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to