diff options
author | Laszlo Ersek <lersek@redhat.com> | 2016-03-22 17:37:36 +0100 |
---|---|---|
committer | Laszlo Ersek <lersek@redhat.com> | 2016-03-23 12:06:20 +0100 |
commit | 36e8e6992d0cd43891e584b24c556e6abc62b6ec (patch) | |
tree | 0afac4130119cebfd1d70aaa8d98ed2ca1836362 /OvmfPkg | |
parent | dfc9514794fc8d43abc305411c86530c41823a58 (diff) | |
download | edk2-36e8e6992d0cd43891e584b24c556e6abc62b6ec.tar.gz edk2-36e8e6992d0cd43891e584b24c556e6abc62b6ec.tar.bz2 edk2-36e8e6992d0cd43891e584b24c556e6abc62b6ec.zip |
OvmfPkg/PlatformBdsLib: rebase to EfiEventGroupSignal
Cc: Jordan Justen <jordan.l.justen@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'OvmfPkg')
-rw-r--r-- | OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c b/OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c index 0abba98dfe..4a2f7f332d 100644 --- a/OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c +++ b/OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c @@ -1164,27 +1164,6 @@ Returns: /**
- Empty callback function executed when the EndOfDxe event group is signaled.
-
- We only need this function because we'd like to signal EndOfDxe, and for that
- we need to create an event, with a callback function.
-
- @param[in] Event Event whose notification function is being invoked.
- @param[in] Context The pointer to the notification function's context, which
- is implementation-dependent.
-**/
-STATIC
-VOID
-EFIAPI
-OnEndOfDxe (
- IN EFI_EVENT Event,
- IN VOID *Context
- )
-{
-}
-
-
-/**
Save the S3 boot script.
Note that we trigger DxeSmmReadyToLock here -- otherwise the script wouldn't
@@ -1259,7 +1238,6 @@ Returns: {
EFI_STATUS Status;
EFI_BOOT_MODE BootMode;
- EFI_EVENT EndOfDxeEvent;
DEBUG ((EFI_D_INFO, "PlatformBdsPolicyBehavior\n"));
@@ -1273,13 +1251,7 @@ Returns: // installed after PCI enumeration completes, we must not trigger the S3 save
// earlier, hence we can't signal End-of-Dxe earlier.
//
- Status = gBS->CreateEventEx (EVT_NOTIFY_SIGNAL, TPL_CALLBACK, OnEndOfDxe,
- NULL /* NotifyContext */, &gEfiEndOfDxeEventGroupGuid,
- &EndOfDxeEvent);
- if (!EFI_ERROR (Status)) {
- gBS->SignalEvent (EndOfDxeEvent);
- gBS->CloseEvent (EndOfDxeEvent);
- }
+ EfiEventGroupSignal (&gEfiEndOfDxeEventGroupGuid);
if (QemuFwCfgS3Enabled ()) {
//
|