mirror of https://github.com/acidanthera/audk.git
Update INF file to properly declare which PCDs must be Fixed, and update PCD usage that does not require the FixedPcdGetxx() access method.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9732 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
1427885873
commit
f4391d63e0
|
@ -1,7 +1,7 @@
|
|||
/** @file
|
||||
EFI PEI Core dispatch services
|
||||
|
||||
Copyright (c) 2006 - 2009, Intel Corporation
|
||||
Copyright (c) 2006 - 2010, 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
|
||||
|
@ -417,7 +417,7 @@ PeiDispatcher (
|
|||
|
||||
REPORT_STATUS_CODE_WITH_EXTENDED_DATA (
|
||||
EFI_PROGRESS_CODE,
|
||||
FixedPcdGet32(PcdStatusCodeValuePeimDispatch),
|
||||
PcdGet32(PcdStatusCodeValuePeimDispatch),
|
||||
(VOID *)(&ExtendedData),
|
||||
sizeof (ExtendedData)
|
||||
);
|
||||
|
@ -442,7 +442,7 @@ PeiDispatcher (
|
|||
|
||||
REPORT_STATUS_CODE_WITH_EXTENDED_DATA (
|
||||
EFI_PROGRESS_CODE,
|
||||
FixedPcdGet32(PcdStatusCodeValuePeimDispatch),
|
||||
PcdGet32(PcdStatusCodeValuePeimDispatch),
|
||||
(VOID *)(&ExtendedData),
|
||||
sizeof (ExtendedData)
|
||||
);
|
||||
|
@ -478,10 +478,10 @@ PeiDispatcher (
|
|||
//
|
||||
OldPeiStackSize = (UINT64) SecCoreData->StackSize;
|
||||
NewPeiStackSize = (RShiftU64 (Private->PhysicalMemoryLength, 1) + EFI_PAGE_MASK) & ~EFI_PAGE_MASK;
|
||||
if (FixedPcdGet32(PcdPeiCoreMaxPeiStackSize) > (UINT32) NewPeiStackSize) {
|
||||
if (PcdGet32(PcdPeiCoreMaxPeiStackSize) > (UINT32) NewPeiStackSize) {
|
||||
Private->StackSize = NewPeiStackSize;
|
||||
} else {
|
||||
Private->StackSize = FixedPcdGet32(PcdPeiCoreMaxPeiStackSize);
|
||||
Private->StackSize = PcdGet32(PcdPeiCoreMaxPeiStackSize);
|
||||
}
|
||||
|
||||
//
|
||||
|
|
|
@ -84,13 +84,15 @@
|
|||
gEfiPeiSecurity2PpiGuid ## NOTIFY
|
||||
gEfiTemporaryRamSupportPpiGuid ## CONSUMES
|
||||
|
||||
[Pcd]
|
||||
[FixedPcd]
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMaxFvSupported ## CONSUMES
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMaxPeimPerFv ## CONSUMES
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMaxPpiSupported ## CONSUMES
|
||||
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValuePeimDispatch ## CONSUMES
|
||||
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValuePeiCoreEntry ## CONSUMES
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMaxPeiStackSize ## CONSUMES
|
||||
|
||||
[Pcd]
|
||||
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValuePeimDispatch ## CONSUMES
|
||||
gEfiMdePkgTokenSpaceGuid.PcdStatusCodeValuePeiCoreEntry ## CONSUMES
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMaxPeiStackSize ## CONSUMES
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreImageLoaderSearchTeSectionFirst ## CONSUMES
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdFrameworkCompatibilitySupport ## CONSUMES
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
/** @file
|
||||
Pei Core Main Entry Point
|
||||
|
||||
Copyright (c) 2006 - 2009, Intel Corporation
|
||||
Copyright (c) 2006 - 2010, 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
|
||||
|
@ -184,7 +184,7 @@ PeiCore (
|
|||
//
|
||||
REPORT_STATUS_CODE (
|
||||
EFI_PROGRESS_CODE,
|
||||
FixedPcdGet32 (PcdStatusCodeValuePeiCoreEntry)
|
||||
PcdGet32 (PcdStatusCodeValuePeiCoreEntry)
|
||||
);
|
||||
|
||||
PERF_START (NULL, "SEC", NULL, 1);
|
||||
|
|
Loading…
Reference in New Issue