From f3de1114e77cf2e68ff8b6be0cae428cfe738297 Mon Sep 17 00:00:00 2001 From: vit9696 Date: Sat, 4 Apr 2020 02:06:08 +0300 Subject: [PATCH] OcAppleCompatLib: Drop memory map size warning On some firmwares, namely MP5,1 memory map is very large (8880 bytes), but XNU compatible. Printing this will make ExitBootServices fail. --- Library/OcAppleBootCompatLib/ServiceOverrides.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Library/OcAppleBootCompatLib/ServiceOverrides.c b/Library/OcAppleBootCompatLib/ServiceOverrides.c index 5bbd7a25..0ff149e5 100644 --- a/Library/OcAppleBootCompatLib/ServiceOverrides.c +++ b/Library/OcAppleBootCompatLib/ServiceOverrides.c @@ -491,10 +491,6 @@ OcGetMemoryMap ( // during hibernate wake to be able to iterate memory map. // BootCompat->ServiceState.MemoryMapDescriptorSize = *DescriptorSize; - - if (*MemoryMapSize > EFI_PAGE_SIZE) { - DEBUG ((DEBUG_INFO, "OCABC: Memory map exceeds 4K - %u, booting may fail\n", (UINT32) *MemoryMapSize)); - } } return Status;