http://git.etherboot.org
/
gpxe.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Keep running the main processing loop while waiting for input.
[gpxe.git]
/
src
/
core
/
getkey.c
diff --git
a/src/core/getkey.c
b/src/core/getkey.c
index
20528ff
..
71ec6cc
100644
(file)
--- a/
src/core/getkey.c
+++ b/
src/core/getkey.c
@@
-18,6
+18,7
@@
#include <console.h>
#include <latch.h>
+#include <gpxe/process.h>
#include <gpxe/keys.h>
/** @file
@@
-38,6
+39,7
@@
static int getchar_timeout ( unsigned long timeout ) {
unsigned long expiry = ( currticks() + timeout );
while ( currticks() < expiry ) {
+ step();
if ( iskey() )
return getchar();
}