From 684fc27f6389f44102b5a3b31f62badc35a9a9ce Mon Sep 17 00:00:00 2001 From: Ben Burwell Date: Wed, 1 Apr 2015 20:32:27 -0400 Subject: as of 2013-12-04 --- com.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'com.c') diff --git a/com.c b/com.c index 5ddba08..1d21a0a 100644 --- a/com.c +++ b/com.c @@ -13,7 +13,6 @@ void interrupt (*vect0c)(); -dcb com; int com_opened; @@ -106,8 +105,11 @@ void com_close() { void interrupt com_int() { int iir; + int *lst_stk; int ret = 0; //0 indicates not finished, 1 indicated finshed + lst_stk = _BP; + // check IIR to see what caused the interrupt iir = inportb(IIR); // only look at bits 1, 2 @@ -123,7 +125,7 @@ void interrupt com_int() { } if (ret == 1) { - IO_complete(); + IO_complete(COM, lst_stk); } // write end of interrupt to 8259 -- cgit v1.2.3