\r
Processor power management initialization code.\r
\r
-Copyright (c) 2013-2015 Intel Corporation.\r
+Copyright (c) 2013-2016 Intel Corporation.\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
EFI_ACPI_TABLE_VERSION Version;\r
UINTN Index;\r
UINTN Handle;\r
- EFI_ACPI_3_0_FIXED_ACPI_DESCRIPTION_TABLE *FadtPointer;\r
\r
//\r
// Scan all the acpi tables to find FADT 2.0\r
ASSERT (Table != NULL);\r
CopyMem (Table, CurrentTable, CurrentTable->Length);\r
\r
- FadtPointer = (EFI_ACPI_3_0_FIXED_ACPI_DESCRIPTION_TABLE*) Table;\r
-\r
- //\r
+ //\r
// Update the ACPI table and recalculate checksum\r
//\r
Status = mAcpiTable->UninstallAcpiTable (mAcpiTable, Handle);\r
UINTN TableHandle;\r
UINT32 FvStatus;\r
UINTN Size;\r
- EFI_ACPI_TABLE_VERSION Version;\r
\r
Status = LocateSupportProtocol (&gEfiFirmwareVolume2ProtocolGuid, (VOID**)&FwVol, 1);\r
if (EFI_ERROR (Status)) {\r
);\r
\r
if (!EFI_ERROR(Status)) {\r
- Version = EFI_ACPI_TABLE_VERSION_1_0B | EFI_ACPI_TABLE_VERSION_2_0 | EFI_ACPI_TABLE_VERSION_3_0;\r
-\r
- if(((EFI_ACPI_DESCRIPTION_HEADER*) CurrentTable)->OemTableId == SIGNATURE_64 ('C', 'p', 'u', '0', 'I', 's', 't', 0)) {\r
- Version = EFI_ACPI_TABLE_VERSION_NONE;\r
- } else if(((EFI_ACPI_DESCRIPTION_HEADER*) CurrentTable)->OemTableId == SIGNATURE_64 ('C', 'p', 'u', '1', 'I', 's', 't', 0)) {\r
- Version = EFI_ACPI_TABLE_VERSION_NONE;\r
- }\r
-\r
SsdtTableUpdate ((EFI_ACPI_DESCRIPTION_HEADER *) CurrentTable);\r
\r
//\r
/** @file\r
Implementation of Helper routines for PEI enviroment.\r
\r
-Copyright (c) 2013-2015 Intel Corporation.\r
+Copyright (c) 2013-2016 Intel Corporation.\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
EFI_SECTION_TYPE SearchType;\r
EFI_FV_INFO VolumeInfo;\r
EFI_FV_FILE_INFO FileInfo;\r
- CONST EFI_PEI_SERVICES **PeiServices;\r
\r
if (FileNameGuid == NULL || SectionData == NULL || SectionDataSize == NULL) {\r
return EFI_INVALID_PARAMETER;\r
*SectionData = NULL;\r
*SectionDataSize = 0;\r
\r
- PeiServices = GetPeiServicesTablePointer ();\r
SearchType = EFI_SECTION_RAW;\r
for (Instance = 0; !EFI_ERROR((PeiServicesFfsFindNextVolume (Instance, &VolumeHandle))); Instance++) {\r
if (FvNameGuid != NULL) {\r
/** @file\r
\r
-Copyright (c) 2013-2015 Intel Corporation.\r
+Copyright (c) 2013-2016 Intel Corporation.\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
--*/\r
{\r
EFI_STATUS Status;\r
- UINTN NumBytes;\r
-\r
- NumBytes = LbaLength;\r
\r
WriteAddress -= (PcdGet32 (PcdFlashAreaBaseAddress));\r
if (mInSmmMode == 0 ) { // !(EfiInManagementInterrupt ())) {\r
VOID *FirmwareVolumeHobList;\r
UINT32 BufferSize;\r
EFI_FV_BLOCK_MAP_ENTRY *PtrBlockMapEntry;\r
- UINTN LbaAddress;\r
BOOLEAN WriteEnabled;\r
BOOLEAN WriteLocked;\r
EFI_HANDLE FwbHandle;\r
FwhInstance->WriteEnabled = WriteEnabled;\r
EfiInitializeLock (&(FwhInstance->FvbDevLock), TPL_HIGH_LEVEL);\r
\r
- LbaAddress = (UINTN) FwhInstance->FvWriteBase[0];\r
NumOfBlocks = 0;\r
WriteLocked = FALSE;\r
\r