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:
@@ -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);
|
||||
}
|
||||
|
||||
//
|
||||
|
Reference in New Issue
Block a user