summaryrefslogtreecommitdiff
path: root/src/dev/uart.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/dev/uart.cc')
-rw-r--r--src/dev/uart.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/dev/uart.cc b/src/dev/uart.cc
index 084511444..f232f0f28 100644
--- a/src/dev/uart.cc
+++ b/src/dev/uart.cc
@@ -39,10 +39,12 @@
using namespace std;
Uart::Uart(const Params *p, Addr pio_size)
- : BasicPioDevice(p, pio_size), platform(p->platform), term(p->terminal)
+ : BasicPioDevice(p, pio_size),
+ platform(p->platform), term(p->terminal),
+ callbackDataAvail(this)
{
status = 0;
- // set back pointers
- term->uart = this;
+ // setup terminal callbacks
+ term->regDataAvailCallback(&callbackDataAvail);
}