Skip to content

Commit

Permalink
Build: Reduce the use of TPL_NOTIFY as it may conflict with debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
vit9696 committed Apr 17, 2020
1 parent 5fc0905 commit c9f4115
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Library/OcApfsLib/OcApfsLib.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ ApfsMonitorNewPartitions (

Status = gBS->CreateEvent (
EVT_NOTIFY_SIGNAL,
TPL_NOTIFY,
TPL_CALLBACK,
ApfsNewPartitionArrived,
NULL,
&Event
Expand Down
2 changes: 1 addition & 1 deletion Library/OcAppleEventLib/EventQueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ InternalCreateQueueEvent (

Status = gBS->CreateEvent (
EVT_NOTIFY_SIGNAL,
TPL_NOTIFY,
TPL_CALLBACK,
InternalQueueEventNotifyFunction,
NULL,
&mQueueEvent
Expand Down
2 changes: 1 addition & 1 deletion Library/OcAppleEventLib/PointerHandler.c
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ EventCreateSimplePointerInstallNotifyEvent (

Status = gBS->CreateEvent (
EVT_NOTIFY_SIGNAL,
TPL_NOTIFY,
TPL_CALLBACK,
InternalSimplePointerInstallNotifyFunction,
NULL,
&mSimplePointerInstallNotifyEvent
Expand Down
2 changes: 1 addition & 1 deletion Library/OcInputLib/Keycode/AIK.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ AIKProtocolArriveInstall (
Status = EFI_SUCCESS;

if (Keycode->KeyMapDbArriveEvent == NULL) {
Status = gBS->CreateEvent (EVT_NOTIFY_SIGNAL, TPL_NOTIFY, AIKProtocolArriveHandler, Keycode, &Keycode->KeyMapDbArriveEvent);
Status = gBS->CreateEvent (EVT_NOTIFY_SIGNAL, TPL_CALLBACK, AIKProtocolArriveHandler, Keycode, &Keycode->KeyMapDbArriveEvent);

if (EFI_ERROR (Status)) {
DEBUG ((DEBUG_INFO, "KeyMapDbArriveEvent creation failed - %r\n", Status));
Expand Down
4 changes: 2 additions & 2 deletions Library/OcInputLib/Pointer/AIM.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ AmiShimPointerTimerSetup (
return EFI_ALREADY_STARTED;
}

Status = gBS->CreateEvent (EVT_TIMER | EVT_NOTIFY_SIGNAL, TPL_NOTIFY, AmiShimPointerPositionHandler, NULL, &mAmiShimPointer.PositionEvent);
Status = gBS->CreateEvent (EVT_TIMER | EVT_NOTIFY_SIGNAL, TPL_CALLBACK, AmiShimPointerPositionHandler, NULL, &mAmiShimPointer.PositionEvent);

if (EFI_ERROR (Status)) {
DEBUG ((DEBUG_INFO, "AmiShimPointerPositionHandler event creation failed %d\n", Status));
Expand Down Expand Up @@ -545,7 +545,7 @@ OcAppleGenericInputPointerInit (
// The caller is required to pass a valid mode.
//

Status = gBS->CreateEvent (EVT_NOTIFY_SIGNAL, TPL_NOTIFY, AmiShimPointerArriveHandler, NULL, &mAmiShimPointer.ProtocolArriveEvent);
Status = gBS->CreateEvent (EVT_NOTIFY_SIGNAL, TPL_CALLBACK, AmiShimPointerArriveHandler, NULL, &mAmiShimPointer.ProtocolArriveEvent);

if (EFI_ERROR (Status)) {
DEBUG ((DEBUG_INFO, "AmiShimPointerArriveHandler event creation failed %d\n", Status));
Expand Down
2 changes: 1 addition & 1 deletion Platform/OpenCore/OpenCoreUefi.c
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ OcLoadUefiSupport (

gBS->CreateEvent (
EVT_SIGNAL_EXIT_BOOT_SERVICES,
TPL_NOTIFY,
TPL_CALLBACK,
OcExitBootServicesHandler,
Config,
&Event
Expand Down
2 changes: 1 addition & 1 deletion Platform/OpenCore/OpenCoreUefiInOut.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ OcLoadUefiInputSupport (
if (ExitBs) {
gBS->CreateEvent (
EVT_SIGNAL_EXIT_BOOT_SERVICES,
TPL_NOTIFY,
TPL_CALLBACK,
OcExitBootServicesInputHandler,
Config,
&Event
Expand Down

0 comments on commit c9f4115

Please sign in to comment.