[nap] Formalise the CPU sleeping API

This commit is contained in:
Michael Brown
2008-10-12 23:36:53 +01:00
parent 658c6dba59
commit c0835339d0
12 changed files with 138 additions and 20 deletions
+1 -5
View File
@@ -1,11 +1,10 @@
#include "stddef.h"
#include "console.h"
#include <gpxe/process.h>
#include <gpxe/nap.h>
/** @file */
#include "bios.h"
static struct console_driver console_drivers[0]
__table_start ( struct console_driver, console );
static struct console_driver console_drivers_end[0]
@@ -82,9 +81,6 @@ static struct console_driver * has_input ( void ) {
*
* The character read will not be echoed back to any console.
*
* @bug We need a cleaner way to pick up cpu_nap(). It makes a
* real-mode call, and so we don't want to use it with LinuxBIOS.
*
*/
int getchar ( void ) {
struct console_driver *console;