mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-30 00:54:06 +02:00
ArmVirtualizationPkg: PlatformIntelBdsLib: add basic policy
In PlatformBdsPolicyBehavior() we should follow the same pattern as in OvmfPkg's: after the consoles are connected, - connect all drivers and devices, - enumerate all boot options, - enter the Intel BDS FrontPage if the user presses a key different from Enter. We set the countdown to 3 seconds, similarly to the timeout that we specify for ARM BDS. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Olivier Martin <Olivier.martin@arm.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16569 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
be8afe14f1
commit
1b610ac255
@ -177,6 +177,8 @@
|
|||||||
gArmVirtualizationTokenSpaceGuid.PcdFwCfgSelectorAddress|0x0
|
gArmVirtualizationTokenSpaceGuid.PcdFwCfgSelectorAddress|0x0
|
||||||
gArmVirtualizationTokenSpaceGuid.PcdFwCfgDataAddress|0x0
|
gArmVirtualizationTokenSpaceGuid.PcdFwCfgDataAddress|0x0
|
||||||
|
|
||||||
|
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
# Components Section - list of all EDK II Modules needed by this Platform
|
# Components Section - list of all EDK II Modules needed by this Platform
|
||||||
|
@ -302,6 +302,10 @@ PlatformBdsPolicyBehavior (
|
|||||||
|
|
||||||
Status = PlatformBdsConnectConsole ();
|
Status = PlatformBdsConnectConsole ();
|
||||||
ASSERT_EFI_ERROR (Status);
|
ASSERT_EFI_ERROR (Status);
|
||||||
|
|
||||||
|
BdsLibConnectAll ();
|
||||||
|
BdsLibEnumerateAllBootOption (BootOptionList);
|
||||||
|
PlatformBdsEnterFrontPage (gPlatformBootTimeOutDefault, TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -32,4 +32,10 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
|
|
||||||
#include <Guid/GlobalVariable.h>
|
#include <Guid/GlobalVariable.h>
|
||||||
|
|
||||||
|
VOID
|
||||||
|
PlatformBdsEnterFrontPage (
|
||||||
|
IN UINT16 TimeoutDefault,
|
||||||
|
IN BOOLEAN ConnectAllHappened
|
||||||
|
);
|
||||||
|
|
||||||
#endif // _INTEL_BDS_PLATFORM_H
|
#endif // _INTEL_BDS_PLATFORM_H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user