diff --git a/apps/old_ABI.c b/apps/old_ABI.c index 3604e58..052fed7 100644 --- a/apps/old_ABI.c +++ b/apps/old_ABI.c @@ -3,6 +3,10 @@ #include #include +/* EFI_TIMESTAMP_PROTOCOL */ +#define TEST_GUID { 0xafbfde41, 0x2e6e, 0x4262,\ + { 0xba, 0x65, 0x62, 0xb9, 0x23, 0x6e, 0x54, 0x95 }} + EFI_STATUS efi_main (EFI_HANDLE image EFI_UNUSED, EFI_SYSTEM_TABLE *systab EFI_UNUSED) { @@ -16,6 +20,14 @@ efi_main (EFI_HANDLE image EFI_UNUSED, EFI_SYSTEM_TABLE *systab EFI_UNUSED) Dest = AllocatePool(test_str_size); CopyMem(Dest, test_str, test_str_size); Copy = ReallocatePool(Dest, test_str_size, test_str_size+10); - Print(u"Done!\r\n"); + Print(u"Done CopyMem and ReallocatePool!\r\n"); + + EFI_GUID a = TEST_GUID; + EFI_GUID b = TEST_GUID; + if (CompareGuid(&a, &b) == 0) { + Print(u"CompareGuid ok!\r\n"); + } else { + Print(u"CompareGuid fail!\r\n"); + } return EFI_SUCCESS; }