summaryrefslogtreecommitdiff
path: root/console.c
diff options
context:
space:
mode:
Diffstat (limited to 'console.c')
-rw-r--r--console.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/console.c b/console.c
index 206a380..eca0225 100644
--- a/console.c
+++ b/console.c
@@ -163,10 +163,14 @@ console_write (int minor, void *buf, int n)
int i;
uchar *b = buf;
+ acquire(&console_lock);
+
for (i = 0; i < n; i++) {
cons_putc((int) b[i]);
}
+ release(&console_lock);
+
return n;
}