summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev/uart.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/dev/uart.cc b/dev/uart.cc
index 30dde1984..7c3ce72ab 100644
--- a/dev/uart.cc
+++ b/dev/uart.cc
@@ -78,9 +78,11 @@ Uart::IntrEvent::scheduleIntr()
{
DPRINTF(Uart, "Scheduling IER interrupt\n");
if (!scheduled())
- schedule(curTick + 300);
+ /* @todo Make this cleaner, will be much easier with
+ * nanosecond time everywhere. Hint hint Nate. */
+ schedule(curTick + (ticksPerSecond/2000) * 350);
else
- reschedule(curTick + 300);
+ reschedule(curTick + (ticksPerSecond/2000) * 350);
}
Uart::Uart(const string &name, SimConsole *c, MemoryController *mmu, Addr a,