for Firmware Basic Boot Performance Record and other boot performance records, \r
and install FPDT to ACPI table.\r
\r
- Copyright (c) 2011 - 2012, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2011 - 2013, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
EFI_ACPI_TABLE_PROTOCOL *AcpiTableProtocol;\r
EFI_PHYSICAL_ADDRESS Address;\r
UINTN Size;\r
- UINT8 SmmBootRecordCommBuffer[SMM_BOOT_RECORD_COMM_SIZE];\r
+ UINT8 *SmmBootRecordCommBuffer;\r
EFI_SMM_COMMUNICATE_HEADER *SmmCommBufferHeader;\r
SMM_BOOT_RECORD_COMMUNICATE *SmmCommData;\r
UINTN CommSize;\r
//\r
// Collect boot records from SMM drivers.\r
//\r
+ SmmBootRecordCommBuffer = AllocateZeroPool (SMM_BOOT_RECORD_COMM_SIZE);\r
+ ASSERT (SmmBootRecordCommBuffer != NULL);\r
SmmCommData = NULL;\r
Status = gBS->LocateProtocol (&gEfiSmmCommunicationProtocolGuid, NULL, (VOID **) &Communication);\r
if (!EFI_ERROR (Status)) {\r
ASSERT_EFI_ERROR(SmmCommData->ReturnStatus);\r
}\r
}\r
+ FreePool (SmmBootRecordCommBuffer);\r
\r
//\r
// Prepare memory for runtime Performance Record. \r