summaryrefslogtreecommitdiff
path: root/dev/uart.hh
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2004-06-29 16:08:26 -0400
committerAli Saidi <saidi@eecs.umich.edu>2004-06-29 16:08:26 -0400
commit5a1340d046c00a322fe2ac4d97a9b03e732b46ba (patch)
tree15f66b2a275d8a48f3e74b75b99d6cea59d05afe /dev/uart.hh
parent38fe4d9a86666cd82911ea8f5b5d047c610de731 (diff)
downloadgem5-5a1340d046c00a322fe2ac4d97a9b03e732b46ba.tar.xz
Another fix for the too much work problem in 2.6. This should do it.
Both rx/tx interrupts are now scheduled for the future to give the linux kernel time to get out of its loop. --HG-- extra : convert_revision : 8fee0a25fde0ce0545c924f8547bed460602e006
Diffstat (limited to 'dev/uart.hh')
-rw-r--r--dev/uart.hh6
1 files changed, 4 insertions, 2 deletions
diff --git a/dev/uart.hh b/dev/uart.hh
index 83e1a758c..07ad4d0c8 100644
--- a/dev/uart.hh
+++ b/dev/uart.hh
@@ -62,14 +62,16 @@ class Uart : public PioDevice
{
protected:
Uart *uart;
+ int intrBit;
public:
- IntrEvent(Uart *u);
+ IntrEvent(Uart *u, int bit);
virtual void process();
virtual const char *description();
void scheduleIntr();
};
- IntrEvent intrEvent;
+ IntrEvent txIntrEvent;
+ IntrEvent rxIntrEvent;
Platform *platform;
public: