source: mainline/boot/arch/ia64/loader/gefi/apps/printenv.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: 703 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_STATUS status;
8 CHAR16 name[256], *val, fmt[20];
9 EFI_GUID vendor;
10 UINTN size;
11
12 InitializeLib(image, systab);
13
14 name[0] = 0;
15 vendor = NullGuid;
16
17 Print(L"GUID Variable Name Value\n");
18 Print(L"=================================== ==================== ========\n");
19
20 StrCpy(fmt, L"%.-35g %.-20s %s\n");
21 while (1) {
22 size = sizeof(name);
23 status = RT->GetNextVariableName(&size, name, &vendor);
24 if (status != EFI_SUCCESS)
25 break;
26
27 val = LibGetVariable(name, &vendor);
28 Print(fmt, &vendor, name, val);
29 FreePool(val);
30 }
31 return EFI_SUCCESS;
32}
Note: See TracBrowser for help on using the repository browser.