24 lines
571 B
C
24 lines
571 B
C
#include <efi.h>
|
|
#include <efilib.h>
|
|
|
|
EFI_STATUS
|
|
efi_main(EFI_HANDLE image_handle, EFI_SYSTEM_TABLE * system_table)
|
|
{
|
|
EFI_STATUS status;
|
|
EFI_INPUT_KEY key;
|
|
|
|
status = system_table->ConOut->OutputString(system_table->ConOut, L"My first EFI loader\n\r");
|
|
if (EFI_ERROR(status))
|
|
return status;
|
|
|
|
status = system_table->ConIn->Reset(system_table->ConIn, FALSE);
|
|
if (EFI_ERROR(status))
|
|
return status;
|
|
|
|
while ((status = system_table->ConIn->ReadKeyStroke(system_table->ConIn, &key)) == EFI_NOT_READY)
|
|
{
|
|
}
|
|
|
|
return status;
|
|
}
|