aboutsummaryrefslogtreecommitdiff
path: root/com.c
diff options
context:
space:
mode:
authorBen Burwell <ben@benburwell.com>2015-04-01 20:32:27 -0400
committerBen Burwell <ben@benburwell.com>2015-04-01 20:32:27 -0400
commit684fc27f6389f44102b5a3b31f62badc35a9a9ce (patch)
tree016c28c9b7501475bff2075ba660477e7eec491d /com.c
parent2b30f30a330ee9bc9feb9ec4e55c8b6f3e6eb8fe (diff)
as of 2013-12-042013-12-04
Diffstat (limited to 'com.c')
-rw-r--r--com.c6
1 files changed, 4 insertions, 2 deletions
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