summaryrefslogtreecommitdiff
path: root/kern
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2004-09-16 00:37:21 -0400
committerAli Saidi <saidi@eecs.umich.edu>2004-09-16 00:37:21 -0400
commita71541a3e81067ebb1b974a2d74c951dc7fcb628 (patch)
tree4015ec6d47548fe3698fdef907439f658b9ba6aa /kern
parenta125a77310dcd777d92749d1306956958d2e8032 (diff)
downloadgem5-a71541a3e81067ebb1b974a2d74c951dc7fcb628.tar.xz
switch contexts on palcode rather than kernel code
cpu/pc_event.cc: mask off lower three bits so we can have an event in palcode --HG-- extra : convert_revision : 49fcdc5c359ca2bd9149f092f80f77abcd7b20ee
Diffstat (limited to 'kern')
-rw-r--r--kern/linux/linux_system.cc23
-rw-r--r--kern/linux/linux_system.hh2
2 files changed, 22 insertions, 3 deletions
diff --git a/kern/linux/linux_system.cc b/kern/linux/linux_system.cc
index 91ad45157..539bac649 100644
--- a/kern/linux/linux_system.cc
+++ b/kern/linux/linux_system.cc
@@ -145,14 +145,29 @@ LinuxSystem::LinuxSystem(Params *p)
printThreadEvent->schedule(addr + sizeof(MachInst) * 6);
intStartEvent = new InterruptStartEvent(&pcEventQueue, "intStartEvent");
- if (kernelSymtab->findAddress("do_entInt", addr))
+ if (palSymtab->findAddress("sys_int_21", addr))
intStartEvent->schedule(addr + sizeof(MachInst) * 2);
+ else
+ panic("could not find symbol\n");
- intEndEvent = new InterruptEndEvent(&pcEventQueue, "intStartEvent");
- if (palSymtab->findAddress("Call_Pal_Rti", addr))
+ intEndEvent = new InterruptEndEvent(&pcEventQueue, "intEndEvent");
+ if (palSymtab->findAddress("rti_to_kern", addr))
intEndEvent->schedule(addr + sizeof(MachInst));
else
panic("could not find symbol\n");
+
+ intEndEvent2 = new InterruptEndEvent(&pcEventQueue, "intEndEvent2");
+ if (palSymtab->findAddress("rti_to_user", addr))
+ intEndEvent2->schedule(addr + sizeof(MachInst));
+ else
+ panic("could not find symbol\n");
+
+
+ intEndEvent3 = new InterruptEndEvent(&pcEventQueue, "intEndEvent3");
+ if (kernelSymtab->findAddress("do_softirq", addr))
+ intEndEvent3->schedule(addr + sizeof(MachInst));
+ else
+ panic("could not find symbol\n");
}
LinuxSystem::~LinuxSystem()
@@ -167,6 +182,8 @@ LinuxSystem::~LinuxSystem()
delete idleStartEvent;
delete printThreadEvent;
delete intStartEvent;
+ delete intEndEvent;
+ delete intEndEvent2;
}
diff --git a/kern/linux/linux_system.hh b/kern/linux/linux_system.hh
index f5fd2b06b..5e3cba9b3 100644
--- a/kern/linux/linux_system.hh
+++ b/kern/linux/linux_system.hh
@@ -98,6 +98,8 @@ class LinuxSystem : public System
* Event to bin Interrupts seperately from kernel code
*/
InterruptEndEvent *intEndEvent;
+ InterruptEndEvent *intEndEvent2;
+ InterruptEndEvent *intEndEvent3;
/** Grab the PCBB of the idle process when it starts */
IdleStartEvent *idleStartEvent;