1) Update SetPeiServicesTablePointer's prototype add CONST modifier.
2) Move STRING_REF from MdePkg/Include/Uefi/UefiBaseType.h to IntelFramework/Include/Protocol/FrameworkHii.h. 3) Move RELOFST from MdePkg/Include/Uefi/UefiInternalFormRepresentation.h to IntelFramework/Include/Protocol/FrameworkHii.h. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6166 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -182,8 +182,8 @@ DiscoverPeimsAndOrderWithApriori (
|
||||
**/
|
||||
VOID*
|
||||
ShadowPeiCore(
|
||||
EFI_PEI_SERVICES **PeiServices,
|
||||
PEI_CORE_INSTANCE *PrivateInMem
|
||||
IN CONST EFI_PEI_SERVICES **PeiServices,
|
||||
IN PEI_CORE_INSTANCE *PrivateInMem
|
||||
)
|
||||
{
|
||||
EFI_PEI_FILE_HANDLE PeiCoreFileHandle;
|
||||
@@ -241,7 +241,7 @@ PeiDispatcher (
|
||||
EFI_STATUS Status;
|
||||
UINT32 Index1;
|
||||
UINT32 Index2;
|
||||
EFI_PEI_SERVICES **PeiServices;
|
||||
CONST EFI_PEI_SERVICES **PeiServices;
|
||||
EFI_PEI_FV_HANDLE VolumeHandle;
|
||||
EFI_PEI_FILE_HANDLE PeimFileHandle;
|
||||
UINTN FvCount;
|
||||
@@ -268,7 +268,7 @@ PeiDispatcher (
|
||||
UINTN OldCheckingBottom;
|
||||
|
||||
|
||||
PeiServices = &Private->PS;
|
||||
PeiServices = (CONST EFI_PEI_SERVICES **) &Private->PS;
|
||||
PeimEntryPoint = NULL;
|
||||
PeimFileHandle = NULL;
|
||||
EntryPoint = 0;
|
||||
@@ -287,7 +287,7 @@ PeiDispatcher (
|
||||
if (Private->Fv[Index1].PeimState[Index2] == PEIM_STATE_REGISITER_FOR_SHADOW) {
|
||||
PeimFileHandle = Private->Fv[Index1].FvFileHandles[Index2];
|
||||
Status = PeiLoadImage (
|
||||
&Private->PS,
|
||||
(CONST EFI_PEI_SERVICES **) &Private->PS,
|
||||
PeimFileHandle,
|
||||
&EntryPoint,
|
||||
&AuthenticationState
|
||||
@@ -347,7 +347,7 @@ PeiDispatcher (
|
||||
//
|
||||
// Get this Fv Handle by PeiService FvFindNextVolume.
|
||||
//
|
||||
PeiFvFindNextVolume ((CONST EFI_PEI_SERVICES **) PeiServices, FvCount, &VolumeHandle);
|
||||
PeiFvFindNextVolume (PeiServices, FvCount, &VolumeHandle);
|
||||
|
||||
if (Private->CurrentPeimCount == 0) {
|
||||
//
|
||||
@@ -549,7 +549,7 @@ PeiDispatcher (
|
||||
PrivateInMem->HobList.Raw = (VOID*) ((UINTN) PrivateInMem->HobList.Raw + HeapOffset);
|
||||
PrivateInMem->StackBase = (EFI_PHYSICAL_ADDRESS)(((UINTN)PrivateInMem->PhysicalMemoryBegin + EFI_PAGE_MASK) & ~EFI_PAGE_MASK);
|
||||
|
||||
PeiServices = &PrivateInMem->PS;
|
||||
PeiServices = (CONST EFI_PEI_SERVICES **) &PrivateInMem->PS;
|
||||
|
||||
//
|
||||
// Fixup for PeiService's address
|
||||
|
Reference in New Issue
Block a user