Have no idea what the changes here are.

This commit is contained in:
Curle 2019-07-25 00:40:49 +01:00
parent e10f110a1f
commit 440b4998e3

View File

@ -1460,8 +1460,8 @@ EFI_STATUS LoadKernel(EFI_HANDLE ImageHandle, GFX_INFO* Graphics, EFI_CONFIGURAT
AwaitKey(L"Preparing to exit UEFI services and call kernel..\r\n");
size_t MapSize = 0, MapKey, MapDescSize;
uint32_t MapDescriptorVersion;
size_t MapSize = 0, MapKey = 0, MapDescSize = 0;
uint32_t MapDescriptorVersion = 0;
EFI_MEMORY_DESCRIPTOR* Map = NULL;
@ -1477,6 +1477,7 @@ EFI_STATUS LoadKernel(EFI_HANDLE ImageHandle, GFX_INFO* Graphics, EFI_CONFIGURAT
KernelStatus = BS->GetMemoryMap(&MapSize, Map, &MapKey, &MapDescSize, &MapDescriptorVersion);
}
//Print(L"Memory Key: %llx", MapKey);
KernelStatus = BS->ExitBootServices(ImageHandle, MapKey);
if (EFI_ERROR(KernelStatus)) {