summaryrefslogtreecommitdiff
path: root/console.c
diff options
context:
space:
mode:
Diffstat (limited to 'console.c')
-rw-r--r--console.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/console.c b/console.c
index 97de59e..3745009 100644
--- a/console.c
+++ b/console.c
@@ -1,6 +1,9 @@
#include <types.h>
#include <x86.h>
#include "defs.h"
+#include "spinlock.h"
+
+struct spinlock console_lock;
/*
* copy console output to parallel port, which you can tell
@@ -26,6 +29,8 @@ cons_putc(int c)
unsigned short *crt = (unsigned short *) 0xB8000; // base of CGA memory
int ind;
+ //acquire(&console_lock);
+
lpt_putc(c);
// cursor position, 16 bits, col + 80*row
@@ -56,6 +61,8 @@ cons_putc(int c)
outb(crtport + 1, ind >> 8);
outb(crtport, 15);
outb(crtport + 1, ind);
+
+ //release(&console_lock);
}
void