summaryrefslogtreecommitdiff
path: root/src/kernel/arch/i386/tty/tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/arch/i386/tty/tty.c')
-rw-r--r--src/kernel/arch/i386/tty/tty.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/kernel/arch/i386/tty/tty.c b/src/kernel/arch/i386/tty/tty.c
index f3fecf3..a63c16a 100644
--- a/src/kernel/arch/i386/tty/tty.c
+++ b/src/kernel/arch/i386/tty/tty.c
@@ -19,6 +19,7 @@ void tty_read(char *buf, size_t len) {
for (;;) {
if (serial_poll_read(&buf[i])) break;
if (keyboard_poll_read(&buf[i])) break;
+ asm("hlt" ::: "memory");
}
}
}