mirror of
https://github.com/ipxe/ipxe
synced 2025-12-19 19:49:45 +03:00
Keep running the main processing loop while waiting for input.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "stddef.h"
|
||||
#include "console.h"
|
||||
#include <gpxe/process.h>
|
||||
|
||||
/** @file */
|
||||
|
||||
@@ -97,6 +98,11 @@ int getchar ( void ) {
|
||||
* less CPU time in a VMware session.
|
||||
*/
|
||||
cpu_nap();
|
||||
|
||||
/* Keep processing background tasks while we wait for
|
||||
* input.
|
||||
*/
|
||||
step();
|
||||
|
||||
console = has_input();
|
||||
if ( console && console->getchar )
|
||||
|
||||
Reference in New Issue
Block a user