OvmfPkg/PlatformPei: Set BootMode, install MasterBootMode PPI
MdeModulePkg/Core/DxeIplPeim is now dependent on gEfiPeiMasterBootModePpiGuid in order to run. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11412 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
dc76cddca6
commit
9ed65b1005
@ -27,8 +27,10 @@
|
|||||||
#include <Library/PcdLib.h>
|
#include <Library/PcdLib.h>
|
||||||
#include <Library/PciLib.h>
|
#include <Library/PciLib.h>
|
||||||
#include <Library/PeimEntryPoint.h>
|
#include <Library/PeimEntryPoint.h>
|
||||||
|
#include <Library/PeiServicesLib.h>
|
||||||
#include <Library/ResourcePublicationLib.h>
|
#include <Library/ResourcePublicationLib.h>
|
||||||
#include <Guid/MemoryTypeInformation.h>
|
#include <Guid/MemoryTypeInformation.h>
|
||||||
|
#include <Ppi/MasterBootMode.h>
|
||||||
|
|
||||||
#include "Platform.h"
|
#include "Platform.h"
|
||||||
#include "Cmos.h"
|
#include "Cmos.h"
|
||||||
@ -45,6 +47,15 @@ EFI_MEMORY_TYPE_INFORMATION mDefaultMemoryTypeInformation[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
EFI_PEI_PPI_DESCRIPTOR mPpiBootMode[] = {
|
||||||
|
{
|
||||||
|
EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST,
|
||||||
|
&gEfiPeiMasterBootModePpiGuid,
|
||||||
|
NULL
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
AddIoMemoryBaseSizeHob (
|
AddIoMemoryBaseSizeHob (
|
||||||
EFI_PHYSICAL_ADDRESS MemoryBase,
|
EFI_PHYSICAL_ADDRESS MemoryBase,
|
||||||
@ -206,6 +217,15 @@ MiscInitialization (
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
VOID
|
||||||
|
BootModeInitialization (
|
||||||
|
)
|
||||||
|
{
|
||||||
|
ASSERT_EFI_ERROR (PeiServicesSetBootMode (BOOT_WITH_FULL_CONFIGURATION));
|
||||||
|
ASSERT_EFI_ERROR (PeiServicesInstallPpi (mPpiBootMode));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
ReserveEmuVariableNvStore (
|
ReserveEmuVariableNvStore (
|
||||||
)
|
)
|
||||||
@ -285,5 +305,7 @@ InitializePlatform (
|
|||||||
|
|
||||||
MiscInitialization ();
|
MiscInitialization ();
|
||||||
|
|
||||||
|
BootModeInitialization ();
|
||||||
|
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
@ -48,6 +48,7 @@
|
|||||||
IoLib
|
IoLib
|
||||||
PciLib
|
PciLib
|
||||||
PeiResourcePublicationLib
|
PeiResourcePublicationLib
|
||||||
|
PeiServicesLib
|
||||||
PeiServicesTablePointerLib
|
PeiServicesTablePointerLib
|
||||||
PeimEntryPoint
|
PeimEntryPoint
|
||||||
|
|
||||||
@ -59,6 +60,9 @@
|
|||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize
|
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved
|
gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved
|
||||||
|
|
||||||
|
[Ppis]
|
||||||
|
gEfiPeiMasterBootModePpiGuid
|
||||||
|
|
||||||
[Depex]
|
[Depex]
|
||||||
TRUE
|
TRUE
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user