public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df42342
)
sc114: fix console blocking
author
Alan Cox
<alan@linux.intel.com>
Sat, 19 Jan 2019 21:32:30 +0000
(21:32 +0000)
committer
Alan Cox
<alan@linux.intel.com>
Sat, 19 Jan 2019 21:32:30 +0000
(21:32 +0000)
Kernel/platform-sc114/devtty.c
patch
|
blob
|
history
diff --git
a/Kernel/platform-sc114/devtty.c
b/Kernel/platform-sc114/devtty.c
index
69b299c
..
58c8422
100644
(file)
--- a/
Kernel/platform-sc114/devtty.c
+++ b/
Kernel/platform-sc114/devtty.c
@@
-127,7
+127,9
@@
void tty_data_consumed(uint8_t minor)
/* kernel writes to system console -- never sleep! */
void kputchar(char c)
{
-
tty_putc(TTYDEV - 512, c
);
+
while(tty_writeready(TTYDEV - 512) != TTY_READY_NOW
);
if (c == '\n')
tty_putc(TTYDEV - 512, '\r');
+ while(tty_writeready(TTYDEV - 512) != TTY_READY_NOW);
+ tty_putc(TTYDEV - 512, c);
}