ExitBootServices failed with EFI_INVALID_PARAMETER because Print ran after GetMemoryMap, so the console output could change the memory map and invalidate MapKey. Locate the RSDP and print it before GetMemoryMap.
ExitBootServices failed with EFI_INVALID_PARAMETER because Print ran after GetMemoryMap, so the console output could change the memory map and invalidate MapKey. Locate the RSDP and print it before GetMemoryMap.