main: refactor to keep the EFI headers from polluting the main namespace
This commit is contained in:
@ -6,6 +6,7 @@
|
||||
#include "../graphics/graphics.h"
|
||||
#include "../driver/irq/pic/serial/serial.h"
|
||||
|
||||
#include "../efimain.h"
|
||||
#include <string.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
@ -100,16 +101,3 @@ int io_Printf(const char *fmt, ...) {
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
EFI_INPUT_KEY io_PauseForKeystroke() {
|
||||
#ifdef HELOS_RUNTIME_QUIET
|
||||
EFI_INPUT_KEY k = {0, 0};
|
||||
return k;
|
||||
#else
|
||||
UINTN index;
|
||||
EFI_INPUT_KEY key;
|
||||
efiBootServices->WaitForEvent(1, &efiStdin->WaitForKey, &index);
|
||||
efiSystemTable->ConIn->ReadKeyStroke(efiSystemTable->ConIn, &key);
|
||||
return key;
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user