summaryrefslogtreecommitdiffstats
path: root/src/core/getkey.c
diff options
context:
space:
mode:
authorMichael Brown2006-12-27 23:59:40 +0100
committerMichael Brown2006-12-27 23:59:40 +0100
commitb6def29f2be0d6b2d84085eeff74299a04f99b33 (patch)
treea7a65e846dbcc25c8fc767f0084cb4b05edaa616 /src/core/getkey.c
parentAdded times to start/stop log messages (diff)
downloadipxe-b6def29f2be0d6b2d84085eeff74299a04f99b33.tar.gz
ipxe-b6def29f2be0d6b2d84085eeff74299a04f99b33.tar.xz
ipxe-b6def29f2be0d6b2d84085eeff74299a04f99b33.zip
Keep running the main processing loop while waiting for input.
Diffstat (limited to 'src/core/getkey.c')
-rw-r--r--src/core/getkey.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/getkey.c b/src/core/getkey.c
index 20528ffc..71ec6cc1 100644
--- 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();
}