mirror of https://github.com/acidanthera/audk.git
IntelFsp2Pkg: Clean up source files
1. Do not use tab characters 2. No trailing white space in one line 3. All files must end with CRLF Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
parent
1c2f052de2
commit
e37bb20c7b
|
@ -1,7 +1,7 @@
|
|||
/** @file
|
||||
Source file for FSP notify phase PEI module
|
||||
|
||||
Copyright (c) 2016, Intel Corporation. All rights reserved.
|
||||
Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
|
@ -16,11 +16,11 @@
|
|||
/**
|
||||
|
||||
This function waits for FSP notify.
|
||||
|
||||
|
||||
@param This Entry point for DXE IPL PPI.
|
||||
@param PeiServices General purpose services available to every PEIM.
|
||||
@param HobList Address to the Pei HOB list.
|
||||
|
||||
|
||||
@return EFI_SUCCESS This function never returns.
|
||||
|
||||
**/
|
||||
|
@ -51,11 +51,11 @@ CONST EFI_PEI_PPI_DESCRIPTOR gEndOfPeiSignalPpi = {
|
|||
/**
|
||||
|
||||
This function waits for FSP notify.
|
||||
|
||||
|
||||
@param This Entry point for DXE IPL PPI.
|
||||
@param PeiServices General purpose services available to every PEIM.
|
||||
@param HobList Address to the Pei HOB list.
|
||||
|
||||
|
||||
@return EFI_SUCCESS This function never returns.
|
||||
|
||||
**/
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
## @file
|
||||
# Sec Core for FSP
|
||||
#
|
||||
# Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
#
|
||||
# This program and the accompanying materials
|
||||
# are licensed and made available under the terms and conditions of the BSD License
|
||||
|
@ -44,7 +44,7 @@
|
|||
|
||||
[Packages]
|
||||
MdePkg/MdePkg.dec
|
||||
MdeModulePkg/MdeModulePkg.dec
|
||||
MdeModulePkg/MdeModulePkg.dec
|
||||
IntelFsp2Pkg/IntelFsp2Pkg.dec
|
||||
|
||||
[LibraryClasses]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
## @file
|
||||
# Sec Core for FSP
|
||||
#
|
||||
# Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
#
|
||||
# This program and the accompanying materials
|
||||
# are licensed and made available under the terms and conditions of the BSD License
|
||||
|
@ -39,7 +39,7 @@
|
|||
|
||||
[Packages]
|
||||
MdePkg/MdePkg.dec
|
||||
MdeModulePkg/MdeModulePkg.dec
|
||||
MdeModulePkg/MdeModulePkg.dec
|
||||
IntelFsp2Pkg/IntelFsp2Pkg.dec
|
||||
|
||||
[LibraryClasses]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
;; @file
|
||||
; Provide FSP API entry points.
|
||||
;
|
||||
; Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
|
||||
; Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
; This program and the accompanying materials
|
||||
; are licensed and made available under the terms and conditions of the BSD License
|
||||
; which accompanies this distribution. The full text of the license may be found at
|
||||
|
@ -116,10 +116,10 @@ ASM_PFX(FspApiCommonContinue):
|
|||
sidt [esp]
|
||||
|
||||
|
||||
; Get Stackbase and StackSize from FSPM_UPD Param
|
||||
mov edx, [esp + API_PARAM1_OFFSET]
|
||||
; Get Stackbase and StackSize from FSPM_UPD Param
|
||||
mov edx, [esp + API_PARAM1_OFFSET]
|
||||
cmp edx, 0
|
||||
jnz FspStackSetup
|
||||
jnz FspStackSetup
|
||||
|
||||
; Get UPD default values if FspmUpdDataPtr (ApiParam1) is null
|
||||
push eax
|
||||
|
@ -127,7 +127,7 @@ ASM_PFX(FspApiCommonContinue):
|
|||
mov edx, [eax + FSP_HEADER_IMGBASE_OFFSET]
|
||||
add edx, [eax + FSP_HEADER_CFGREG_OFFSET]
|
||||
pop eax
|
||||
|
||||
|
||||
FspStackSetup:
|
||||
mov edi, [edx + FSPM_UPD_COMMON.StackBase]
|
||||
mov ecx, [edx + FSPM_UPD_COMMON.StackSize]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/** @file
|
||||
|
||||
Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2014 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
|
@ -154,7 +154,7 @@ FspGlobalDataInit (
|
|||
// Set API calling mode
|
||||
//
|
||||
SetFspApiCallingIndex (ApiIdx);
|
||||
|
||||
|
||||
//
|
||||
// Set UPD pointer
|
||||
//
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/** @file
|
||||
|
||||
Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
|
@ -33,7 +33,7 @@ FspApiCallingCheck (
|
|||
|
||||
Status = EFI_SUCCESS;
|
||||
FspData = GetFspGlobalDataPointer ();
|
||||
|
||||
|
||||
if (ApiIdx == NotifyPhaseApiIndex) {
|
||||
//
|
||||
// NotifyPhase check
|
||||
|
@ -92,6 +92,6 @@ FspApiCallingCheck (
|
|||
SetFspApiCallingIndex (ApiIdx);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return Status;
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/** @file
|
||||
|
||||
Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2014 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
|
@ -133,7 +133,7 @@ SecStartup (
|
|||
|
||||
//
|
||||
// Call PeiCore Entry
|
||||
//
|
||||
//
|
||||
PeiCore (&SecCoreData, mPeiSecPlatformInformationPpi);
|
||||
|
||||
//
|
||||
|
@ -177,7 +177,7 @@ SecTemporaryRamSupport (
|
|||
|
||||
HeapSize = CopySize * PcdGet8 (PcdFspHeapSizePercentage) / 100 ;
|
||||
StackSize = CopySize - HeapSize;
|
||||
|
||||
|
||||
OldHeap = (VOID*)(UINTN)TemporaryMemoryBase;
|
||||
NewHeap = (VOID*)((UINTN)PermanentMemoryBase + StackSize);
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
Intel FSP API definition from Intel Firmware Support Package External
|
||||
Architecture Specification v2.0.
|
||||
|
||||
Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2014 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
|
@ -216,7 +216,7 @@ EFI_STATUS
|
|||
and defined for each FSP binary. This will be documented in Integration guide with
|
||||
each FSP release.
|
||||
After FspMemInit completes its execution, it passes the pointer to the HobList and
|
||||
returns to the boot loader from where it was called. BootLoader is responsible to
|
||||
returns to the boot loader from where it was called. BootLoader is responsible to
|
||||
migrate it's stack and data to Memory.
|
||||
FspMemoryInit, TempRamExit and FspSiliconInit APIs provide an alternate method to
|
||||
complete the silicon initialization and provides bootloader an opportunity to get
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
Intel FSP Header File definition from Intel Firmware Support Package External
|
||||
Architecture Specification v2.0.
|
||||
|
||||
Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2014 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
|
@ -144,7 +144,7 @@ typedef struct {
|
|||
///
|
||||
UINT8 Reserved;
|
||||
///
|
||||
/// Byte 0x0A: FSP producer identification string
|
||||
/// Byte 0x0A: FSP producer identification string
|
||||
///
|
||||
CHAR8 FspProducerId[6];
|
||||
///
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/** @file
|
||||
|
||||
Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2014 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
|
@ -268,7 +268,7 @@ SetFspApiCallingIndex (
|
|||
|
||||
/**
|
||||
This function gets FSP Phase StatusCode.
|
||||
|
||||
|
||||
@retval StatusCode
|
||||
**/
|
||||
UINT32
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
## @file
|
||||
# Provides driver and definitions to build fsp in EDKII bios.
|
||||
#
|
||||
# Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2014 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
# This program and the accompanying materials are licensed and made available under
|
||||
# the terms and conditions of the BSD License that accompanies this distribution.
|
||||
# The full text of the license may be found at
|
||||
|
@ -20,7 +20,7 @@
|
|||
|
||||
[Includes]
|
||||
Include
|
||||
|
||||
|
||||
[LibraryClasses]
|
||||
## @libraryclass Provides cache-as-ram support.
|
||||
CacheAsRamLib|Include/Library/CacheAsRamLib.h
|
||||
|
@ -39,7 +39,7 @@
|
|||
|
||||
## @libraryclass Provides FSP switch stack function.
|
||||
FspSwitchStackLib|Include/Library/FspSwitchStackLib.h
|
||||
|
||||
|
||||
## @libraryclass Provides FSP platform sec related actions.
|
||||
FspSecPlatformLib|Include/Library/FspSecPlatformLib.h
|
||||
|
||||
|
@ -74,7 +74,7 @@
|
|||
# x % of FSP temporary memory will be used for heap
|
||||
# (100 - x) % of FSP temporary memory will be used for stack
|
||||
gIntelFsp2PkgTokenSpaceGuid.PcdFspHeapSizePercentage | 50| UINT8|0x10000004
|
||||
|
||||
|
||||
[PcdsFixedAtBuild,PcdsDynamic,PcdsDynamicEx]
|
||||
gIntelFsp2PkgTokenSpaceGuid.PcdFspReservedMemoryLength |0x00100000|UINT32|0x46530000
|
||||
gIntelFsp2PkgTokenSpaceGuid.PcdBootLoaderEntry |0xFFFFFFE4|UINT32|0x46530100
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
## @file
|
||||
# Instance of FspCommonLib
|
||||
# Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
# Instance of FspCommonLib
|
||||
# Copyright (c) 2014 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
#
|
||||
# This program and the accompanying materials
|
||||
# are licensed and made available under the terms and conditions of the BSD License
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/** @file
|
||||
|
||||
Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2014 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
|
@ -516,7 +516,7 @@ FspApiReturnStatusReset (
|
|||
)
|
||||
{
|
||||
volatile BOOLEAN LoopUntilReset;
|
||||
|
||||
|
||||
LoopUntilReset = TRUE;
|
||||
DEBUG ((DEBUG_INFO, "FSP returning control to Bootloader with reset required return status %x\n",FspResetType));
|
||||
///
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/** @file
|
||||
|
||||
Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2014 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
|
@ -48,12 +48,12 @@ FspGetResourceDescriptorByOwner (
|
|||
if (Hob.Header->HobType == EFI_HOB_TYPE_RESOURCE_DESCRIPTOR) {
|
||||
if ((Hob.ResourceDescriptor->ResourceType == EFI_RESOURCE_MEMORY_RESERVED) && \
|
||||
(CompareGuid (&Hob.ResourceDescriptor->Owner, OwnerGuid))) {
|
||||
return Hob.ResourceDescriptor;
|
||||
return Hob.ResourceDescriptor;
|
||||
}
|
||||
}
|
||||
Hob.Raw = GET_NEXT_HOB (Hob);
|
||||
}
|
||||
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
; This is the code that goes from real-mode to protected mode.
|
||||
; It consumes the reset vector, configures the stack.
|
||||
;
|
||||
; Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
; Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
; This program and the accompanying materials
|
||||
; are licensed and made available under the terms and conditions of the BSD License
|
||||
; which accompanies this distribution. The full text of the license may be found at
|
||||
|
@ -124,4 +124,4 @@ ASM_PFX(ProtectedModeEntryLinearAddress):
|
|||
ASM_PFX(ProtectedModeEntryLinearOffset):
|
||||
DD ASM_PFX(ProtectedModeEntryPoint) ; Offset of our 32 bit code
|
||||
DW LINEAR_CODE_SEL
|
||||
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
## @ PatchFv.py
|
||||
#
|
||||
# Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2014 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
# This program and the accompanying materials are licensed and made available under
|
||||
# the terms and conditions of the BSD License that accompanies this distribution.
|
||||
# The full text of the license may be found at
|
||||
|
@ -136,8 +136,8 @@ class Symbols:
|
|||
fvInfo['Offset'] = self.getFvOffsetInFd(fvFile)
|
||||
fvInfo['Size'] = readDataFromFile (fvFile, 0x20, 4)
|
||||
fdIn = open(infFile, "r")
|
||||
rptLines = fdIn.readlines()
|
||||
fdIn.close()
|
||||
rptLines = fdIn.readlines()
|
||||
fdIn.close()
|
||||
fvInfo['Base'] = 0
|
||||
for rptLine in rptLines:
|
||||
match = re.match("^EFI_BASE_ADDRESS\s*=\s*(0x[a-fA-F0-9]+)", rptLine)
|
||||
|
@ -289,7 +289,7 @@ class Symbols:
|
|||
#
|
||||
def parseInfFile(self, infFile):
|
||||
#
|
||||
# Get FV offset and search EFI_BASE_ADDRESS in the FD file
|
||||
# Get FV offset and search EFI_BASE_ADDRESS in the FD file
|
||||
# then assign the value of EFI_BASE_ADDRESS to fdBase
|
||||
#
|
||||
fvOffset = self.getFvOffsetInFd(infFile[0:-4] + ".Fv")
|
||||
|
|
Loading…
Reference in New Issue