/** @file\r
Source file for FSP notify phase PEI module\r
\r
- Copyright (c) 2016, Intel Corporation. All rights reserved.\r
+ Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.\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
/**\r
\r
This function waits for FSP notify.\r
- \r
+\r
@param This Entry point for DXE IPL PPI.\r
@param PeiServices General purpose services available to every PEIM.\r
@param HobList Address to the Pei HOB list.\r
- \r
+\r
@return EFI_SUCCESS This function never returns.\r
\r
**/\r
/**\r
\r
This function waits for FSP notify.\r
- \r
+\r
@param This Entry point for DXE IPL PPI.\r
@param PeiServices General purpose services available to every PEIM.\r
@param HobList Address to the Pei HOB list.\r
- \r
+\r
@return EFI_SUCCESS This function never returns.\r
\r
**/\r
## @file\r
# Sec Core for FSP\r
#\r
-# Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>\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
[Packages]\r
MdePkg/MdePkg.dec\r
- MdeModulePkg/MdeModulePkg.dec \r
+ MdeModulePkg/MdeModulePkg.dec\r
IntelFsp2Pkg/IntelFsp2Pkg.dec\r
\r
[LibraryClasses]\r
## @file\r
# Sec Core for FSP\r
#\r
-# Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>\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
[Packages]\r
MdePkg/MdePkg.dec\r
- MdeModulePkg/MdeModulePkg.dec \r
+ MdeModulePkg/MdeModulePkg.dec\r
IntelFsp2Pkg/IntelFsp2Pkg.dec\r
\r
[LibraryClasses]\r
;; @file\r
; Provide FSP API entry points.\r
;\r
-; Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>\r
+; Copyright (c) 2016 - 2018, 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
sidt [esp]\r
\r
\r
- ; Get Stackbase and StackSize from FSPM_UPD Param \r
- mov edx, [esp + API_PARAM1_OFFSET] \r
+ ; Get Stackbase and StackSize from FSPM_UPD Param\r
+ mov edx, [esp + API_PARAM1_OFFSET]\r
cmp edx, 0\r
- jnz FspStackSetup \r
+ jnz FspStackSetup\r
\r
; Get UPD default values if FspmUpdDataPtr (ApiParam1) is null\r
push eax\r
mov edx, [eax + FSP_HEADER_IMGBASE_OFFSET]\r
add edx, [eax + FSP_HEADER_CFGREG_OFFSET]\r
pop eax\r
- \r
+\r
FspStackSetup:\r
mov edi, [edx + FSPM_UPD_COMMON.StackBase]\r
mov ecx, [edx + FSPM_UPD_COMMON.StackSize]\r
/** @file\r
\r
- Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2014 - 2018, 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
// Set API calling mode\r
//\r
SetFspApiCallingIndex (ApiIdx);\r
- \r
+\r
//\r
// Set UPD pointer\r
//\r
/** @file\r
\r
- Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2016 - 2018, 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
\r
Status = EFI_SUCCESS;\r
FspData = GetFspGlobalDataPointer ();\r
- \r
+\r
if (ApiIdx == NotifyPhaseApiIndex) {\r
//\r
// NotifyPhase check\r
SetFspApiCallingIndex (ApiIdx);\r
}\r
}\r
- \r
+\r
return Status;\r
}\r
/** @file\r
\r
- Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2014 - 2018, 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
\r
//\r
// Call PeiCore Entry\r
- // \r
+ //\r
PeiCore (&SecCoreData, mPeiSecPlatformInformationPpi);\r
\r
//\r
\r
HeapSize = CopySize * PcdGet8 (PcdFspHeapSizePercentage) / 100 ;\r
StackSize = CopySize - HeapSize;\r
- \r
+\r
OldHeap = (VOID*)(UINTN)TemporaryMemoryBase;\r
NewHeap = (VOID*)((UINTN)PermanentMemoryBase + StackSize);\r
\r
Intel FSP API definition from Intel Firmware Support Package External\r
Architecture Specification v2.0.\r
\r
- Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2014 - 2018, 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
and defined for each FSP binary. This will be documented in Integration guide with\r
each FSP release.\r
After FspMemInit completes its execution, it passes the pointer to the HobList and\r
- returns to the boot loader from where it was called. BootLoader is responsible to \r
+ returns to the boot loader from where it was called. BootLoader is responsible to\r
migrate it's stack and data to Memory.\r
FspMemoryInit, TempRamExit and FspSiliconInit APIs provide an alternate method to\r
complete the silicon initialization and provides bootloader an opportunity to get\r
Intel FSP Header File definition from Intel Firmware Support Package External\r
Architecture Specification v2.0.\r
\r
- Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2014 - 2018, 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
///\r
UINT8 Reserved;\r
///\r
- /// Byte 0x0A: FSP producer identification string \r
+ /// Byte 0x0A: FSP producer identification string\r
///\r
CHAR8 FspProducerId[6];\r
///\r
/** @file\r
\r
- Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2014 - 2018, 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
\r
/**\r
This function gets FSP Phase StatusCode.\r
- \r
+\r
@retval StatusCode\r
**/\r
UINT32\r
## @file\r
# Provides driver and definitions to build fsp in EDKII bios.\r
#\r
-# Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2014 - 2018, Intel Corporation. All rights reserved.<BR>\r
# This program and the accompanying materials are licensed and made available under\r
# the terms and conditions of the BSD License that accompanies this distribution.\r
# The full text of the license may be found at\r
\r
[Includes]\r
Include\r
- \r
+\r
[LibraryClasses]\r
## @libraryclass Provides cache-as-ram support.\r
CacheAsRamLib|Include/Library/CacheAsRamLib.h\r
\r
## @libraryclass Provides FSP switch stack function.\r
FspSwitchStackLib|Include/Library/FspSwitchStackLib.h\r
- \r
+\r
## @libraryclass Provides FSP platform sec related actions.\r
FspSecPlatformLib|Include/Library/FspSecPlatformLib.h\r
\r
# x % of FSP temporary memory will be used for heap\r
# (100 - x) % of FSP temporary memory will be used for stack\r
gIntelFsp2PkgTokenSpaceGuid.PcdFspHeapSizePercentage | 50| UINT8|0x10000004\r
- \r
+\r
[PcdsFixedAtBuild,PcdsDynamic,PcdsDynamicEx]\r
gIntelFsp2PkgTokenSpaceGuid.PcdFspReservedMemoryLength |0x00100000|UINT32|0x46530000\r
gIntelFsp2PkgTokenSpaceGuid.PcdBootLoaderEntry |0xFFFFFFE4|UINT32|0x46530100\r
## @file\r
-# Instance of FspCommonLib \r
-# Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>\r
+# Instance of FspCommonLib\r
+# Copyright (c) 2014 - 2018, Intel Corporation. All rights reserved.<BR>\r
#\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
/** @file\r
\r
- Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2014 - 2018, 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
)\r
{\r
volatile BOOLEAN LoopUntilReset;\r
- \r
+\r
LoopUntilReset = TRUE;\r
DEBUG ((DEBUG_INFO, "FSP returning control to Bootloader with reset required return status %x\n",FspResetType));\r
///\r
/** @file\r
\r
- Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2014 - 2018, 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
if (Hob.Header->HobType == EFI_HOB_TYPE_RESOURCE_DESCRIPTOR) {\r
if ((Hob.ResourceDescriptor->ResourceType == EFI_RESOURCE_MEMORY_RESERVED) && \\r
(CompareGuid (&Hob.ResourceDescriptor->Owner, OwnerGuid))) {\r
- return Hob.ResourceDescriptor; \r
+ return Hob.ResourceDescriptor;\r
}\r
}\r
Hob.Raw = GET_NEXT_HOB (Hob);\r
}\r
- \r
+\r
return NULL;\r
}\r
\r
; This is the code that goes from real-mode to protected mode.\r
; It consumes the reset vector, configures the stack.\r
;\r
-; Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>\r
+; Copyright (c) 2015 - 2018, 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
ASM_PFX(ProtectedModeEntryLinearOffset):\r
DD ASM_PFX(ProtectedModeEntryPoint) ; Offset of our 32 bit code\r
DW LINEAR_CODE_SEL\r
- \r
+\r
## @ PatchFv.py\r
#\r
-# Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2014 - 2018, Intel Corporation. All rights reserved.<BR>\r
# This program and the accompanying materials are licensed and made available under\r
# the terms and conditions of the BSD License that accompanies this distribution.\r
# The full text of the license may be found at\r
fvInfo['Offset'] = self.getFvOffsetInFd(fvFile)\r
fvInfo['Size'] = readDataFromFile (fvFile, 0x20, 4)\r
fdIn = open(infFile, "r")\r
- rptLines = fdIn.readlines() \r
- fdIn.close() \r
+ rptLines = fdIn.readlines()\r
+ fdIn.close()\r
fvInfo['Base'] = 0\r
for rptLine in rptLines:\r
match = re.match("^EFI_BASE_ADDRESS\s*=\s*(0x[a-fA-F0-9]+)", rptLine)\r
#\r
def parseInfFile(self, infFile):\r
#\r
- # Get FV offset and search EFI_BASE_ADDRESS in the FD file \r
+ # Get FV offset and search EFI_BASE_ADDRESS in the FD file\r
# then assign the value of EFI_BASE_ADDRESS to fdBase\r
#\r
fvOffset = self.getFvOffsetInFd(infFile[0:-4] + ".Fv")\r