[io] Instead of busy waiting for that, halt until interrupt. Herp derp.
This commit is contained in:
parent
f414baa81e
commit
df5e79c215
@ -151,7 +151,7 @@ kgets(
|
||||
kgets_newline = 0;
|
||||
keyboard_buffer_handler = kgets_handler;
|
||||
while ((kgets_collected < size) && (!kgets_newline)) {
|
||||
// spin spin spin
|
||||
__asm__ __volatile__ ("hlt");
|
||||
}
|
||||
buffer[kgets_collected] = '\0';
|
||||
keyboard_buffer_handler = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user