blob: 905a21ea224966853a5ed3f3c9f1da373a86eafc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#include <Uefi.h>
#include <Library/UefiLib.h>
#include <Library/UefiApplicationEntryPoint.h>
EFI_STATUS
EFIAPI
UefiMain (
IN EFI_HANDLE ImageHandle,
IN EFI_SYSTEM_TABLE *SystemTable
)
{
Print(L"This is the Memtest Application\n");
EFI_SYSTEM_TABLE *st = SystemTable;
EFI_CONFIGURATION_TABLE *ct = st->ConfigurationTable;
EFI_GUID guid = ct->VendorGuid;
UINT32 data1 = guid.Data1;
// UINT16 data2 = guid.Data2;
// UINT16 data3 ;
// UINT8 data4[8];
//
// Use UefiLib Print API to print string to UEFI console
//
Print(L"Data1: %d\n", data1);
return EFI_SUCCESS;
}
|