initialize lastTxInt to 0
authorAli Saidi <saidi@eecs.umich.edu>
Tue, 1 May 2007 16:32:30 +0000 (12:32 -0400)
committerAli Saidi <saidi@eecs.umich.edu>
Tue, 1 May 2007 16:32:30 +0000 (12:32 -0400)
--HG--
extra : convert_revision : 4c5e9c2145b12fdeba91f3fdd8963c35abe326c2

src/dev/uart8250.cc

index d178bd1af48124301abfdc89b2a80dbdab162a93..50307aad4e1235a49edb4e298616e5fd1ff5b057 100644 (file)
@@ -101,14 +101,11 @@ Uart8250::IntrEvent::scheduleIntr()
 
 
 Uart8250::Uart8250(Params *p)
-    : Uart(p), txIntrEvent(this, TX_INT), rxIntrEvent(this, RX_INT)
+    : Uart(p), IER(0), DLAB(0), LCR(0), MCR(0), lastTxInt(0),
+      txIntrEvent(this, TX_INT), rxIntrEvent(this, RX_INT)
 {
     pioSize = 8;
 
-    IER = 0;
-    DLAB = 0;
-    LCR = 0;
-    MCR = 0;
 }
 
 Tick