Commit 13dccb03 authored by Robert Morris's avatar Robert Morris Committed by Frans Kaashoek
Browse files

consolewrite does not need cons.lock -- can lead to sleep() with lock held

No related merge requests found
Showing with 0 additions and 2 deletions
+0 -2
......@@ -60,14 +60,12 @@ consolewrite(int user_src, uint64 src, int n)
{
int i;
acquire(&cons.lock);
for(i = 0; i < n; i++){
char c;
if(either_copyin(&c, user_src, src+i, 1) == -1)
break;
uartputc(c);
}
release(&cons.lock);
return i;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment