diff options
author | rtm <rtm> | 2006-07-12 01:48:35 +0000 |
---|---|---|
committer | rtm <rtm> | 2006-07-12 01:48:35 +0000 |
commit | 4e8f237be819424f922399f8d121d9867b675541 (patch) | |
tree | 53459cfde9630b3ae0d2d46d0ce3d4c1ac423944 /console.c | |
parent | b41b38d0da0854f3fa92967b70180ea1156154d4 (diff) | |
download | xv6-labs-4e8f237be819424f922399f8d121d9867b675541.tar.gz xv6-labs-4e8f237be819424f922399f8d121d9867b675541.tar.bz2 xv6-labs-4e8f237be819424f922399f8d121d9867b675541.zip |
no more big kernel lock
succeeds at usertests.c pipe test
Diffstat (limited to 'console.c')
-rw-r--r-- | console.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |