source: mainline/boot/arch/ia64/loader/gefi/apps/t7.c@ abe6163

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since abe6163 was 7208b6c, checked in by Jakub Vana <jakub.vana@…>, 18 years ago

Basic IA64 boot and kernel suport for real machines

  • Property mode set to 100644
File size: 575 bytes
Line 
1#include <efi.h>
2#include <efilib.h>
3
4EFI_STATUS
5efi_main (EFI_HANDLE image, EFI_SYSTEM_TABLE *systab)
6{
7 EFI_INPUT_KEY efi_input_key;
8 EFI_STATUS efi_status;
9
10 InitializeLib(image, systab);
11
12 Print(L"HelloLib application started\n");
13
14 Print(L"\n\n\nHit any key to exit this image\n");
15 WaitForSingleEvent(ST->ConIn->WaitForKey, 0);
16
17 ST->ConOut->OutputString(ST->ConOut, L"\n\n");
18
19 efi_status = ST->ConIn->ReadKeyStroke(ST->ConIn, &efi_input_key);
20
21 Print(L"ScanCode: %xh UnicodeChar: %xh\n",
22 efi_input_key.ScanCode, efi_input_key.UnicodeChar);
23
24 return EFI_SUCCESS;
25}
Note: See TracBrowser for help on using the repository browser.