Revision: 18513
http://sourceforge.net/p/edk2/code/18513
Author: lersek
Date: 2015-09-18 13:58:35 +0000 (Fri, 18 Sep 2015)
Log Message:
-----------
ArmVirtPkg: PlatformIntelBdsLib: signal ReadyToBoot on direct kernel boot
According to the UEFI spec, EFI_EVENT_GROUP_READY_TO_BOOT "is notified by
the system when the Boot Manager is about to load and execute a boot
option". ArmVirtPkg doesn't do this currently when launching a kernel from
the QEMU command line. OvmfPkg does (see git commit 28a34033ee).
At least two edk2-wide callbacks are worth mentioning:
- OnReadyToBoot() in
"MdeModulePkg/Universal/Variable/RuntimeDxe/VariableDxe.c" performs
variable reclaim and (optionally) installs variable usage statistics as
a vendor config table;
- OnReadyToBoot() in
"SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.c"
installs the image execution info table if it doesn't exist yet, in
SecureBoot-enabled builds.
Cc: Ard Biesheuvel <[email protected]>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <[email protected]>
Reviewed-by: Ard Biesheuvel <[email protected]>
Modified Paths:
--------------
trunk/edk2/ArmVirtPkg/Library/PlatformIntelBdsLib/PlatformIntelBdsLib.inf
trunk/edk2/ArmVirtPkg/Library/PlatformIntelBdsLib/QemuKernel.c
Modified:
trunk/edk2/ArmVirtPkg/Library/PlatformIntelBdsLib/PlatformIntelBdsLib.inf
===================================================================
--- trunk/edk2/ArmVirtPkg/Library/PlatformIntelBdsLib/PlatformIntelBdsLib.inf
2015-09-18 06:25:27 UTC (rev 18512)
+++ trunk/edk2/ArmVirtPkg/Library/PlatformIntelBdsLib/PlatformIntelBdsLib.inf
2015-09-18 13:58:35 UTC (rev 18513)
@@ -53,6 +53,7 @@
QemuBootOrderLib
QemuFwCfgLib
UefiBootServicesTableLib
+ UefiLib
UefiRuntimeServicesTableLib
[FixedPcd]
Modified: trunk/edk2/ArmVirtPkg/Library/PlatformIntelBdsLib/QemuKernel.c
===================================================================
--- trunk/edk2/ArmVirtPkg/Library/PlatformIntelBdsLib/QemuKernel.c
2015-09-18 06:25:27 UTC (rev 18512)
+++ trunk/edk2/ArmVirtPkg/Library/PlatformIntelBdsLib/QemuKernel.c
2015-09-18 13:58:35 UTC (rev 18513)
@@ -20,6 +20,7 @@
#include <Guid/FileSystemVolumeLabelInfo.h>
#include <Library/PrintLib.h>
#include <Library/QemuFwCfgLib.h>
+#include <Library/UefiLib.h>
#include <Protocol/DevicePath.h>
#include <Protocol/LoadedImage.h>
#include <Protocol/SimpleFileSystem.h>
@@ -1066,6 +1067,11 @@
}
//
+ // Signal the EFI_EVENT_GROUP_READY_TO_BOOT event.
+ //
+ EfiSignalEventReadyToBoot();
+
+ //
// Start the image.
//
Status = gBS->StartImage (
------------------------------------------------------------------------------
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits