Add initial HOS EFI Loader sources
This commit is contained in:
1 parent
1fc2dd34e5
commit
54451bcf5b
4 files changed
+44
-6
No files matched your search
@@ -0,0 +1,17 @@
|
||||
import uefi;
|
||||
|
||||
extern (C) EFI_STATUS efi_main(EFI_HANDLE image_handle, EFI_SYSTEM_TABLE * st)
|
||||
{
|
||||
st.ConOut.ClearScreen(st.ConOut);
|
||||
|
||||
st.ConOut.OutputString(st.ConOut, cast(CHAR16 *)"HOS EFI loader\r\n"w);
|
||||
st.ConOut.OutputString(st.ConOut, cast(CHAR16 *)"Press any key...\r\n"w);
|
||||
|
||||
st.ConIn.Reset(st.ConIn, FALSE);
|
||||
EFI_INPUT_KEY key;
|
||||
while (st.ConIn.ReadKeyStroke(st.ConIn, &key) == EFI_NOT_READY)
|
||||
{
|
||||
}
|
||||
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
Reference in new issue
Block a user