[io] Instead of busy waiting for that, halt until interrupt. Herp derp.

This commit is contained in:
Kevin Lange 2011-02-11 01:20:26 -06:00
parent f414baa81e
commit df5e79c215

View File

@ -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;