diff --git a/edk2-rockchip/Silicon/Rockchip/Drivers/StatusLedDxe/StatusLedDxe.c b/edk2-rockchip/Silicon/Rockchip/Drivers/StatusLedDxe/StatusLedDxe.c index b8d91158b..95464b0ac 100644 --- a/edk2-rockchip/Silicon/Rockchip/Drivers/StatusLedDxe/StatusLedDxe.c +++ b/edk2-rockchip/Silicon/Rockchip/Drivers/StatusLedDxe/StatusLedDxe.c @@ -231,7 +231,7 @@ NotifyPlatformBmAfterConsole ( STATIC VOID EFIAPI -NotifyExitBootServices ( +NotifyBeforeExitBootServices ( IN EFI_EVENT Event, IN VOID *Context ) @@ -256,7 +256,7 @@ StatusLedDxeInitialize ( Status = gBS->CreateEvent ( EVT_TIMER | EVT_NOTIFY_SIGNAL, // Type - TPL_NOTIFY, // NotifyTpl + TPL_CALLBACK, // NotifyTpl TimerHandler, // NotifyFunction NULL, // NotifyContext &mTimerEvent // Event @@ -270,7 +270,7 @@ StatusLedDxeInitialize ( Status = gBS->CreateEventEx ( EVT_NOTIFY_SIGNAL, // Type - TPL_NOTIFY, // NotifyTpl + TPL_CALLBACK, // NotifyTpl NotifyPlatformBmAfterConsole, // NotifyFunction NULL, // NotifyContext &gRockchipEventPlatformBmAfterConsoleGuid, // EventGroup @@ -278,12 +278,12 @@ StatusLedDxeInitialize ( ); Status = gBS->CreateEventEx ( - EVT_NOTIFY_SIGNAL, // Type - TPL_NOTIFY, // NotifyTpl - NotifyExitBootServices, // NotifyFunction - NULL, // NotifyContext - &gEfiEventExitBootServicesGuid, // EventGroup - &Event // Event + EVT_NOTIFY_SIGNAL, // Type + TPL_CALLBACK, // NotifyTpl + NotifyBeforeExitBootServices, // NotifyFunction + NULL, // NotifyContext + &gEfiEventBeforeExitBootServicesGuid, // EventGroup + &Event // Event ); return EFI_SUCCESS; diff --git a/edk2-rockchip/Silicon/Rockchip/Drivers/StatusLedDxe/StatusLedDxe.inf b/edk2-rockchip/Silicon/Rockchip/Drivers/StatusLedDxe/StatusLedDxe.inf index 0b319bbba..aa790a74a 100644 --- a/edk2-rockchip/Silicon/Rockchip/Drivers/StatusLedDxe/StatusLedDxe.inf +++ b/edk2-rockchip/Silicon/Rockchip/Drivers/StatusLedDxe/StatusLedDxe.inf @@ -34,7 +34,7 @@ [Protocols] [Guids] - gEfiEventExitBootServicesGuid + gEfiEventBeforeExitBootServicesGuid gRockchipEventPlatformBmAfterConsoleGuid [Depex]