From dfc9514794fc8d43abc305411c86530c41823a58 Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Tue, 22 Mar 2016 17:37:36 +0100 Subject: ArmVirtPkg/PlatformIntelBdsLib: rebase to EfiEventGroupSignal Cc: Ard Biesheuvel Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Quickly-acked-by: Ard Biesheuvel Reviewed-by: Jordan Justen Reviewed-by: Liming Gao --- .../Library/PlatformIntelBdsLib/IntelBdsPlatform.c | 34 +--------------------- .../Library/PlatformIntelBdsLib/IntelBdsPlatform.h | 1 + .../Library/PlatformIntelBdsLib/QemuKernel.c | 1 - 3 files changed, 2 insertions(+), 34 deletions(-) diff --git a/ArmVirtPkg/Library/PlatformIntelBdsLib/IntelBdsPlatform.c b/ArmVirtPkg/Library/PlatformIntelBdsLib/IntelBdsPlatform.c index b242a293a1..9267a188e8 100644 --- a/ArmVirtPkg/Library/PlatformIntelBdsLib/IntelBdsPlatform.c +++ b/ArmVirtPkg/Library/PlatformIntelBdsLib/IntelBdsPlatform.c @@ -121,24 +121,6 @@ STATIC PLATFORM_USB_KEYBOARD mUsbKeyboard = { } }; -/** - An empty function to pass error checking of CreateEventEx (). - - @param Event Event whose notification function is being invoked. - @param Context Pointer to the notification function's context, - which is implementation-dependent. - -**/ -STATIC -VOID -EFIAPI -EmptyCallbackFunction ( - IN EFI_EVENT Event, - IN VOID *Context - ) -{ -} - // // BDS Platform Functions // @@ -153,24 +135,10 @@ PlatformBdsInit ( VOID ) { - EFI_EVENT EndOfDxeEvent; - EFI_STATUS Status; - // // Signal EndOfDxe PI Event // - Status = gBS->CreateEventEx ( - EVT_NOTIFY_SIGNAL, - TPL_CALLBACK, - EmptyCallbackFunction, - NULL, - &gEfiEndOfDxeEventGroupGuid, - &EndOfDxeEvent - ); - if (!EFI_ERROR (Status)) { - gBS->SignalEvent (EndOfDxeEvent); - gBS->CloseEvent (EndOfDxeEvent); - } + EfiEventGroupSignal (&gEfiEndOfDxeEventGroupGuid); } diff --git a/ArmVirtPkg/Library/PlatformIntelBdsLib/IntelBdsPlatform.h b/ArmVirtPkg/Library/PlatformIntelBdsLib/IntelBdsPlatform.h index 3d29b0d099..190ce9b294 100644 --- a/ArmVirtPkg/Library/PlatformIntelBdsLib/IntelBdsPlatform.h +++ b/ArmVirtPkg/Library/PlatformIntelBdsLib/IntelBdsPlatform.h @@ -22,6 +22,7 @@ #include #include #include +#include #include VOID diff --git a/ArmVirtPkg/Library/PlatformIntelBdsLib/QemuKernel.c b/ArmVirtPkg/Library/PlatformIntelBdsLib/QemuKernel.c index c48f4767ad..402db97a80 100644 --- a/ArmVirtPkg/Library/PlatformIntelBdsLib/QemuKernel.c +++ b/ArmVirtPkg/Library/PlatformIntelBdsLib/QemuKernel.c @@ -20,7 +20,6 @@ #include #include #include -#include #include #include #include -- cgit v1.2.3