Add some definitions for efi event in Uefi/UefiSpec.h to follow spec.
Changed old event definitions reference to these new event definitions. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2729 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -321,7 +321,7 @@ CirrusLogic5430UgaDrawBlt (
|
|||||||
// We would not want a timer based event (Cursor, ...) to come in while we are
|
// We would not want a timer based event (Cursor, ...) to come in while we are
|
||||||
// doing this operation.
|
// doing this operation.
|
||||||
//
|
//
|
||||||
OriginalTPL = gBS->RaiseTPL (EFI_TPL_NOTIFY);
|
OriginalTPL = gBS->RaiseTPL (TPL_NOTIFY);
|
||||||
|
|
||||||
switch (BltOperation) {
|
switch (BltOperation) {
|
||||||
case EfiUgaVideoToBltBuffer:
|
case EfiUgaVideoToBltBuffer:
|
||||||
|
@ -2138,7 +2138,7 @@ EhciAsyncInterruptTransfer (
|
|||||||
//
|
//
|
||||||
if (!IsNewTransfer) {
|
if (!IsNewTransfer) {
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_NOTIFY);
|
OldTpl = gBS->RaiseTPL (TPL_NOTIFY);
|
||||||
|
|
||||||
Status = DeleteAsyncRequestTransfer (
|
Status = DeleteAsyncRequestTransfer (
|
||||||
HcDev,
|
HcDev,
|
||||||
|
@ -239,7 +239,7 @@ Returns:
|
|||||||
MemoryHeader = HcDev->MemoryHeader;
|
MemoryHeader = HcDev->MemoryHeader;
|
||||||
ASSERT (MemoryHeader != NULL);
|
ASSERT (MemoryHeader != NULL);
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_NOTIFY + 1);
|
OldTpl = gBS->RaiseTPL (TPL_NOTIFY + 1);
|
||||||
|
|
||||||
//
|
//
|
||||||
// allocate unit is 32 bytes (align on 32 byte)
|
// allocate unit is 32 bytes (align on 32 byte)
|
||||||
@ -297,7 +297,7 @@ Returns:
|
|||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_NOTIFY + 1);
|
OldTpl = gBS->RaiseTPL (TPL_NOTIFY + 1);
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -353,7 +353,7 @@ Returns:
|
|||||||
UINTN Count;
|
UINTN Count;
|
||||||
UINTN RealAllocSize;
|
UINTN RealAllocSize;
|
||||||
EFI_TPL OldTpl;
|
EFI_TPL OldTpl;
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (TPL_NOTIFY + 1);
|
OldTpl = gBS->RaiseTPL (TPL_NOTIFY + 1);
|
||||||
|
|
||||||
MemoryHeader = HcDev->MemoryHeader;
|
MemoryHeader = HcDev->MemoryHeader;
|
||||||
@ -419,7 +419,7 @@ Returns:
|
|||||||
// the TempHeaderPtr is pointing to nonsense content.
|
// the TempHeaderPtr is pointing to nonsense content.
|
||||||
//
|
//
|
||||||
gBS->RestoreTPL (OldTpl);
|
gBS->RestoreTPL (OldTpl);
|
||||||
FreeMemoryHeader (HcDev, TempHeaderPtr);
|
FreeMemoryHeader (HcDev, TempHeaderPtr);
|
||||||
OldTpl = gBS->RaiseTPL (TPL_NOTIFY + 1);
|
OldTpl = gBS->RaiseTPL (TPL_NOTIFY + 1);
|
||||||
//
|
//
|
||||||
// reset the TempHeaderPtr, continue search for
|
// reset the TempHeaderPtr, continue search for
|
||||||
|
@ -347,8 +347,8 @@ Returns:
|
|||||||
--*/
|
--*/
|
||||||
{
|
{
|
||||||
return gBS->CreateEvent (
|
return gBS->CreateEvent (
|
||||||
EFI_EVENT_TIMER | EFI_EVENT_NOTIFY_SIGNAL,
|
EVT_TIMER | EVT_NOTIFY_SIGNAL,
|
||||||
EFI_TPL_NOTIFY,
|
TPL_NOTIFY,
|
||||||
NotifyFunction,
|
NotifyFunction,
|
||||||
HcDev,
|
HcDev,
|
||||||
&HcDev->AsyncRequestEvent
|
&HcDev->AsyncRequestEvent
|
||||||
|
@ -720,8 +720,8 @@ IDEBusDriverBindingStart (
|
|||||||
// Create event to clear pending IDE interrupt
|
// Create event to clear pending IDE interrupt
|
||||||
//
|
//
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
EFI_EVENT_SIGNAL_EXIT_BOOT_SERVICES,
|
EVT_SIGNAL_EXIT_BOOT_SERVICES,
|
||||||
EFI_TPL_NOTIFY,
|
TPL_NOTIFY,
|
||||||
ClearInterrupt,
|
ClearInterrupt,
|
||||||
IdeBlkIoDevicePtr,
|
IdeBlkIoDevicePtr,
|
||||||
&IdeBlkIoDevicePtr->ExitBootServiceEvent
|
&IdeBlkIoDevicePtr->ExitBootServiceEvent
|
||||||
@ -1037,7 +1037,7 @@ IDEBlkIoReset (
|
|||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
EFI_TPL OldTpl;
|
EFI_TPL OldTpl;
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);
|
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
|
||||||
|
|
||||||
IdeBlkIoDevice = IDE_BLOCK_IO_DEV_FROM_THIS (This);
|
IdeBlkIoDevice = IDE_BLOCK_IO_DEV_FROM_THIS (This);
|
||||||
//
|
//
|
||||||
@ -1099,7 +1099,7 @@ IDEBlkIoReadBlocks (
|
|||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
EFI_TPL OldTpl;
|
EFI_TPL OldTpl;
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);
|
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
|
||||||
|
|
||||||
IdeBlkIoDevice = IDE_BLOCK_IO_DEV_FROM_THIS (This);
|
IdeBlkIoDevice = IDE_BLOCK_IO_DEV_FROM_THIS (This);
|
||||||
|
|
||||||
@ -1172,7 +1172,7 @@ IDEBlkIoWriteBlocks (
|
|||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
EFI_TPL OldTpl;
|
EFI_TPL OldTpl;
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);
|
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
|
||||||
|
|
||||||
IdeBlkIoDevice = IDE_BLOCK_IO_DEV_FROM_THIS (This);
|
IdeBlkIoDevice = IDE_BLOCK_IO_DEV_FROM_THIS (This);
|
||||||
//
|
//
|
||||||
|
@ -693,7 +693,7 @@ Returns:
|
|||||||
//
|
//
|
||||||
// Raise TPL to high level to disable timer interrupt while the BAR is probed
|
// Raise TPL to high level to disable timer interrupt while the BAR is probed
|
||||||
//
|
//
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_HIGH_LEVEL);
|
OldTpl = gBS->RaiseTPL (TPL_HIGH_LEVEL);
|
||||||
|
|
||||||
PciIoWrite (PciIo, EfiPciIoWidthUint32, (UINT8) Offset, 1, &gAllOne);
|
PciIoWrite (PciIo, EfiPciIoWidthUint32, (UINT8) Offset, 1, &gAllOne);
|
||||||
PciIoRead (PciIo, EfiPciIoWidthUint32, (UINT8) Offset, 1, &Value);
|
PciIoRead (PciIo, EfiPciIoWidthUint32, (UINT8) Offset, 1, &Value);
|
||||||
@ -759,7 +759,7 @@ Returns:
|
|||||||
//
|
//
|
||||||
// Raise TPL to high level to disable timer interrupt while the BAR is probed
|
// Raise TPL to high level to disable timer interrupt while the BAR is probed
|
||||||
//
|
//
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_HIGH_LEVEL);
|
OldTpl = gBS->RaiseTPL (TPL_HIGH_LEVEL);
|
||||||
|
|
||||||
PciSetCommandRegister (PciIoDevice, *Command);
|
PciSetCommandRegister (PciIoDevice, *Command);
|
||||||
PciReadCommandRegister (PciIoDevice, Command);
|
PciReadCommandRegister (PciIoDevice, Command);
|
||||||
@ -784,7 +784,7 @@ Returns:
|
|||||||
//
|
//
|
||||||
// Raise TPL to high level to disable timer interrupt while the BAR is probed
|
// Raise TPL to high level to disable timer interrupt while the BAR is probed
|
||||||
//
|
//
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_HIGH_LEVEL);
|
OldTpl = gBS->RaiseTPL (TPL_HIGH_LEVEL);
|
||||||
|
|
||||||
PciSetBridgeControlRegister (PciIoDevice, *BridgeControl);
|
PciSetBridgeControlRegister (PciIoDevice, *BridgeControl);
|
||||||
PciReadBridgeControlRegister (PciIoDevice, BridgeControl);
|
PciReadBridgeControlRegister (PciIoDevice, BridgeControl);
|
||||||
|
@ -254,8 +254,8 @@ Returns:
|
|||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
|
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
EFI_EVENT_NOTIFY_SIGNAL,
|
EVT_NOTIFY_SIGNAL,
|
||||||
EFI_TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
PciHPCInitialized,
|
PciHPCInitialized,
|
||||||
gPciRootHpcData + HpIndex,
|
gPciRootHpcData + HpIndex,
|
||||||
&((gPciRootHpcData + HpIndex)->Event)
|
&((gPciRootHpcData + HpIndex)->Event)
|
||||||
|
@ -289,8 +289,8 @@ UHCIDriverBindingStart (
|
|||||||
// Create timer for interrupt transfer result polling
|
// Create timer for interrupt transfer result polling
|
||||||
//
|
//
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
EFI_EVENT_TIMER | EFI_EVENT_NOTIFY_SIGNAL,
|
EVT_TIMER | EVT_NOTIFY_SIGNAL,
|
||||||
EFI_TPL_NOTIFY,
|
TPL_NOTIFY,
|
||||||
MonitorInterruptTrans,
|
MonitorInterruptTrans,
|
||||||
HcDev,
|
HcDev,
|
||||||
&HcDev->InterruptTransTimer
|
&HcDev->InterruptTransTimer
|
||||||
@ -2624,7 +2624,7 @@ UHCIAsyncInterruptTransfer (
|
|||||||
//
|
//
|
||||||
if (!IsNewTransfer) {
|
if (!IsNewTransfer) {
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_NOTIFY);
|
OldTpl = gBS->RaiseTPL (TPL_NOTIFY);
|
||||||
|
|
||||||
Status = DeleteAsyncINTQHTDs (
|
Status = DeleteAsyncINTQHTDs (
|
||||||
HcDev,
|
HcDev,
|
||||||
|
@ -161,8 +161,8 @@ Returns:
|
|||||||
EFI_EVENT Event;
|
EFI_EVENT Event;
|
||||||
|
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
EFI_EVENT_SIGNAL_EXIT_BOOT_SERVICES,
|
EVT_SIGNAL_EXIT_BOOT_SERVICES,
|
||||||
EFI_TPL_NOTIFY,
|
TPL_NOTIFY,
|
||||||
UndiNotifyExitBs,
|
UndiNotifyExitBs,
|
||||||
NULL,
|
NULL,
|
||||||
&Event
|
&Event
|
||||||
|
@ -334,7 +334,7 @@ Returns:
|
|||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
EFI_TPL OldTpl;
|
EFI_TPL OldTpl;
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);
|
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
|
||||||
|
|
||||||
ScsiDiskDevice = SCSI_DISK_DEV_FROM_THIS (This);
|
ScsiDiskDevice = SCSI_DISK_DEV_FROM_THIS (This);
|
||||||
|
|
||||||
@ -405,7 +405,7 @@ Returns:
|
|||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);
|
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
|
||||||
|
|
||||||
ScsiDiskDevice = SCSI_DISK_DEV_FROM_THIS (This);
|
ScsiDiskDevice = SCSI_DISK_DEV_FROM_THIS (This);
|
||||||
|
|
||||||
@ -529,7 +529,7 @@ Returns:
|
|||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);
|
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
|
||||||
|
|
||||||
ScsiDiskDevice = SCSI_DISK_DEV_FROM_THIS (This);
|
ScsiDiskDevice = SCSI_DISK_DEV_FROM_THIS (This);
|
||||||
|
|
||||||
|
@ -622,8 +622,8 @@ UsbBusControllerDriverStart (
|
|||||||
// Create a timer to query root ports periodically
|
// Create a timer to query root ports periodically
|
||||||
//
|
//
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
EFI_EVENT_TIMER | EFI_EVENT_NOTIFY_SIGNAL,
|
EVT_TIMER | EVT_NOTIFY_SIGNAL,
|
||||||
EFI_TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
RootHubEnumeration,
|
RootHubEnumeration,
|
||||||
RootHubController,
|
RootHubController,
|
||||||
&RootHubController->HubNotify
|
&RootHubController->HubNotify
|
||||||
@ -1667,8 +1667,8 @@ RootHubEnumeration (
|
|||||||
// Create an event to do hub enumeration
|
// Create an event to do hub enumeration
|
||||||
//
|
//
|
||||||
gBS->CreateEvent (
|
gBS->CreateEvent (
|
||||||
EFI_EVENT_NOTIFY_SIGNAL,
|
EVT_NOTIFY_SIGNAL,
|
||||||
EFI_TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
HubEnumeration,
|
HubEnumeration,
|
||||||
NewController,
|
NewController,
|
||||||
&NewController->HubNotify
|
&NewController->HubNotify
|
||||||
@ -2040,8 +2040,8 @@ HubEnumeration (
|
|||||||
// Create an event to do hub enumeration
|
// Create an event to do hub enumeration
|
||||||
//
|
//
|
||||||
gBS->CreateEvent (
|
gBS->CreateEvent (
|
||||||
EFI_EVENT_NOTIFY_SIGNAL,
|
EVT_NOTIFY_SIGNAL,
|
||||||
EFI_TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
HubEnumeration,
|
HubEnumeration,
|
||||||
NewController,
|
NewController,
|
||||||
&NewController->HubNotify
|
&NewController->HubNotify
|
||||||
|
@ -283,8 +283,8 @@ USBKeyboardDriverBindingStart (
|
|||||||
UsbKeyboardDevice->SimpleInput.Reset = USBKeyboardReset;
|
UsbKeyboardDevice->SimpleInput.Reset = USBKeyboardReset;
|
||||||
UsbKeyboardDevice->SimpleInput.ReadKeyStroke = USBKeyboardReadKeyStroke;
|
UsbKeyboardDevice->SimpleInput.ReadKeyStroke = USBKeyboardReadKeyStroke;
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
EFI_EVENT_NOTIFY_WAIT,
|
EVT_NOTIFY_WAIT,
|
||||||
EFI_TPL_NOTIFY,
|
TPL_NOTIFY,
|
||||||
USBKeyboardWaitForKey,
|
USBKeyboardWaitForKey,
|
||||||
UsbKeyboardDevice,
|
UsbKeyboardDevice,
|
||||||
&(UsbKeyboardDevice->SimpleInput.WaitForKey)
|
&(UsbKeyboardDevice->SimpleInput.WaitForKey)
|
||||||
|
@ -301,8 +301,8 @@ InitUSBKeyboard (
|
|||||||
}
|
}
|
||||||
|
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
EFI_EVENT_TIMER | EFI_EVENT_NOTIFY_SIGNAL,
|
EVT_TIMER | EVT_NOTIFY_SIGNAL,
|
||||||
EFI_TPL_NOTIFY,
|
TPL_NOTIFY,
|
||||||
USBKeyboardRepeatHandler,
|
USBKeyboardRepeatHandler,
|
||||||
UsbKeyboardDevice,
|
UsbKeyboardDevice,
|
||||||
&UsbKeyboardDevice->RepeatTimer
|
&UsbKeyboardDevice->RepeatTimer
|
||||||
@ -314,8 +314,8 @@ InitUSBKeyboard (
|
|||||||
}
|
}
|
||||||
|
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
EFI_EVENT_TIMER | EFI_EVENT_NOTIFY_SIGNAL,
|
EVT_TIMER | EVT_NOTIFY_SIGNAL,
|
||||||
EFI_TPL_NOTIFY,
|
TPL_NOTIFY,
|
||||||
USBKeyboardRecoveryHandler,
|
USBKeyboardRecoveryHandler,
|
||||||
UsbKeyboardDevice,
|
UsbKeyboardDevice,
|
||||||
&UsbKeyboardDevice->DelayedRecoveryEvent
|
&UsbKeyboardDevice->DelayedRecoveryEvent
|
||||||
|
@ -352,7 +352,7 @@ USBFloppyReset (
|
|||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
EFI_TPL OldTpl;
|
EFI_TPL OldTpl;
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);
|
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
|
||||||
|
|
||||||
UsbFloppyDevice = USB_FLOPPY_DEV_FROM_THIS (This);
|
UsbFloppyDevice = USB_FLOPPY_DEV_FROM_THIS (This);
|
||||||
|
|
||||||
@ -426,7 +426,7 @@ USBFloppyReadBlocks (
|
|||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);
|
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
|
||||||
|
|
||||||
UsbFloppyTestUnitReady (UsbFloppyDevice);
|
UsbFloppyTestUnitReady (UsbFloppyDevice);
|
||||||
|
|
||||||
@ -572,7 +572,7 @@ USBFloppyWriteBlocks (
|
|||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);
|
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
|
||||||
|
|
||||||
UsbFloppyTestUnitReady (UsbFloppyDevice);
|
UsbFloppyTestUnitReady (UsbFloppyDevice);
|
||||||
|
|
||||||
|
@ -283,8 +283,8 @@ USBMouseDriverBindingStart (
|
|||||||
UsbMouseDevice->SimplePointerProtocol.Mode = &UsbMouseDevice->Mode;
|
UsbMouseDevice->SimplePointerProtocol.Mode = &UsbMouseDevice->Mode;
|
||||||
|
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
EFI_EVENT_NOTIFY_WAIT,
|
EVT_NOTIFY_WAIT,
|
||||||
EFI_TPL_NOTIFY,
|
TPL_NOTIFY,
|
||||||
UsbMouseWaitForInput,
|
UsbMouseWaitForInput,
|
||||||
UsbMouseDevice,
|
UsbMouseDevice,
|
||||||
&((UsbMouseDevice->SimplePointerProtocol).WaitForInput)
|
&((UsbMouseDevice->SimplePointerProtocol).WaitForInput)
|
||||||
@ -677,8 +677,8 @@ InitializeUsbMouseDevice (
|
|||||||
}
|
}
|
||||||
|
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
EFI_EVENT_TIMER | EFI_EVENT_NOTIFY_SIGNAL,
|
EVT_TIMER | EVT_NOTIFY_SIGNAL,
|
||||||
EFI_TPL_NOTIFY,
|
TPL_NOTIFY,
|
||||||
USBMouseRecoveryHandler,
|
USBMouseRecoveryHandler,
|
||||||
UsbMouseDev,
|
UsbMouseDev,
|
||||||
&UsbMouseDev->DelayedRecoveryEvent
|
&UsbMouseDev->DelayedRecoveryEvent
|
||||||
|
@ -66,7 +66,7 @@ LIST_ENTRY mFvHandleList = INITIALIZE_LIST_HEAD_VARIABLE (mFvHandleList);
|
|||||||
//
|
//
|
||||||
// Lock for mDiscoveredList, mScheduledQueue, gDispatcherRunning.
|
// Lock for mDiscoveredList, mScheduledQueue, gDispatcherRunning.
|
||||||
//
|
//
|
||||||
EFI_LOCK mDispatcherLock = EFI_INITIALIZE_LOCK_VARIABLE (EFI_TPL_HIGH_LEVEL);
|
EFI_LOCK mDispatcherLock = EFI_INITIALIZE_LOCK_VARIABLE (TPL_HIGH_LEVEL);
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -1126,7 +1126,7 @@ Returns:
|
|||||||
{
|
{
|
||||||
mFwVolEvent = CoreCreateProtocolNotifyEvent (
|
mFwVolEvent = CoreCreateProtocolNotifyEvent (
|
||||||
&gEfiFirmwareVolumeProtocolGuid,
|
&gEfiFirmwareVolumeProtocolGuid,
|
||||||
EFI_TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
CoreFwVolEventProtocolNotify,
|
CoreFwVolEventProtocolNotify,
|
||||||
NULL,
|
NULL,
|
||||||
&mFwVolEventRegistration,
|
&mFwVolEventRegistration,
|
||||||
|
@ -216,8 +216,8 @@ Returns:
|
|||||||
// Create the event
|
// Create the event
|
||||||
//
|
//
|
||||||
Status = CoreCreateEvent (
|
Status = CoreCreateEvent (
|
||||||
EFI_EVENT_NOTIFY_SIGNAL,
|
EVT_NOTIFY_SIGNAL,
|
||||||
EFI_TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
GenericArchProtocolNotify,
|
GenericArchProtocolNotify,
|
||||||
NULL,
|
NULL,
|
||||||
&Entry->Event
|
&Entry->Event
|
||||||
|
@ -30,30 +30,30 @@ UINT32 mEventTable[] = {
|
|||||||
// 0x80000200 Timer event with a notification function that is
|
// 0x80000200 Timer event with a notification function that is
|
||||||
// queue when the event is signaled with SignalEvent()
|
// queue when the event is signaled with SignalEvent()
|
||||||
//
|
//
|
||||||
EFI_EVENT_TIMER | EFI_EVENT_NOTIFY_SIGNAL,
|
EVT_TIMER | EVT_NOTIFY_SIGNAL,
|
||||||
//
|
//
|
||||||
// 0x80000000 Timer event without a notification function. It can be
|
// 0x80000000 Timer event without a notification function. It can be
|
||||||
// signaled with SignalEvent() and checked with CheckEvent() or WaitForEvent().
|
// signaled with SignalEvent() and checked with CheckEvent() or WaitForEvent().
|
||||||
//
|
//
|
||||||
EFI_EVENT_TIMER,
|
EVT_TIMER,
|
||||||
//
|
//
|
||||||
// 0x00000100 Generic event with a notification function that
|
// 0x00000100 Generic event with a notification function that
|
||||||
// can be waited on with CheckEvent() or WaitForEvent()
|
// can be waited on with CheckEvent() or WaitForEvent()
|
||||||
//
|
//
|
||||||
EFI_EVENT_NOTIFY_WAIT,
|
EVT_NOTIFY_WAIT,
|
||||||
//
|
//
|
||||||
// 0x00000200 Generic event with a notification function that
|
// 0x00000200 Generic event with a notification function that
|
||||||
// is queue when the event is signaled with SignalEvent()
|
// is queue when the event is signaled with SignalEvent()
|
||||||
//
|
//
|
||||||
EFI_EVENT_NOTIFY_SIGNAL,
|
EVT_NOTIFY_SIGNAL,
|
||||||
//
|
//
|
||||||
// 0x00000201 ExitBootServicesEvent.
|
// 0x00000201 ExitBootServicesEvent.
|
||||||
//
|
//
|
||||||
EFI_EVENT_SIGNAL_EXIT_BOOT_SERVICES,
|
EVT_SIGNAL_EXIT_BOOT_SERVICES,
|
||||||
//
|
//
|
||||||
// 0x60000202 SetVirtualAddressMapEvent.
|
// 0x60000202 SetVirtualAddressMapEvent.
|
||||||
//
|
//
|
||||||
EFI_EVENT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,
|
EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,
|
||||||
|
|
||||||
//
|
//
|
||||||
// 0x00000000 Generic event without a notification function.
|
// 0x00000000 Generic event without a notification function.
|
||||||
@ -65,7 +65,7 @@ UINT32 mEventTable[] = {
|
|||||||
// 0x80000100 Timer event with a notification function that can be
|
// 0x80000100 Timer event with a notification function that can be
|
||||||
// waited on with CheckEvent() or WaitForEvent()
|
// waited on with CheckEvent() or WaitForEvent()
|
||||||
//
|
//
|
||||||
EFI_EVENT_TIMER | EFI_EVENT_NOTIFY_WAIT,
|
EVT_TIMER | EVT_NOTIFY_WAIT,
|
||||||
};
|
};
|
||||||
|
|
||||||
STATIC
|
STATIC
|
||||||
@ -139,7 +139,7 @@ Returns:
|
|||||||
{
|
{
|
||||||
UINTN Index;
|
UINTN Index;
|
||||||
|
|
||||||
for (Index=0; Index <= EFI_TPL_HIGH_LEVEL; Index++) {
|
for (Index=0; Index <= TPL_HIGH_LEVEL; Index++) {
|
||||||
InitializeListHead (&gEventQueue[Index]);
|
InitializeListHead (&gEventQueue[Index]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -190,7 +190,7 @@ Returns:
|
|||||||
// Only clear the SIGNAL status if it is a SIGNAL type event.
|
// Only clear the SIGNAL status if it is a SIGNAL type event.
|
||||||
// WAIT type events are only cleared in CheckEvent()
|
// WAIT type events are only cleared in CheckEvent()
|
||||||
//
|
//
|
||||||
if (Event->Type & EFI_EVENT_NOTIFY_SIGNAL) {
|
if (Event->Type & EVT_NOTIFY_SIGNAL) {
|
||||||
Event->SignalCount = 0;
|
Event->SignalCount = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -332,9 +332,9 @@ Returns:
|
|||||||
//
|
//
|
||||||
// Convert EFI 1.10 Events to thier UEFI 2.0 CreateEventEx mapping
|
// Convert EFI 1.10 Events to thier UEFI 2.0 CreateEventEx mapping
|
||||||
//
|
//
|
||||||
if (Type == EVENT_SIGNAL_EXIT_BOOT_SERVICES) {
|
if (Type == EVT_SIGNAL_EXIT_BOOT_SERVICES) {
|
||||||
GuidPtr = &gEfiEventExitBootServicesGuid;
|
GuidPtr = &gEfiEventExitBootServicesGuid;
|
||||||
} else if (Type == EVENT_SIGNAL_VIRTUAL_ADDRESS_CHANGE) {
|
} else if (Type == EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE) {
|
||||||
GuidPtr = &gEfiEventVirtualAddressChangeGuid;
|
GuidPtr = &gEfiEventVirtualAddressChangeGuid;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -378,7 +378,7 @@ Returns:
|
|||||||
INTN Index;
|
INTN Index;
|
||||||
|
|
||||||
|
|
||||||
if ((Event == NULL) || (NotifyTpl == EFI_TPL_APPLICATION)) {
|
if ((Event == NULL) || (NotifyTpl == TPL_APPLICATION)) {
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -399,13 +399,13 @@ Returns:
|
|||||||
//
|
//
|
||||||
// If it's a notify type of event, check its parameters
|
// If it's a notify type of event, check its parameters
|
||||||
//
|
//
|
||||||
if ((Type & (EFI_EVENT_NOTIFY_WAIT | EFI_EVENT_NOTIFY_SIGNAL))) {
|
if ((Type & (EVT_NOTIFY_WAIT | EVT_NOTIFY_SIGNAL))) {
|
||||||
//
|
//
|
||||||
// Check for an invalid NotifyFunction or NotifyTpl
|
// Check for an invalid NotifyFunction or NotifyTpl
|
||||||
//
|
//
|
||||||
if ((NotifyFunction == NULL) ||
|
if ((NotifyFunction == NULL) ||
|
||||||
(NotifyTpl < EFI_TPL_APPLICATION) ||
|
(NotifyTpl < TPL_APPLICATION) ||
|
||||||
(NotifyTpl >= EFI_TPL_HIGH_LEVEL)) {
|
(NotifyTpl >= TPL_HIGH_LEVEL)) {
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -422,7 +422,7 @@ Returns:
|
|||||||
// Allcoate and initialize a new event structure.
|
// Allcoate and initialize a new event structure.
|
||||||
//
|
//
|
||||||
Status = CoreAllocatePool (
|
Status = CoreAllocatePool (
|
||||||
(Type & EFI_EVENT_RUNTIME) ? EfiRuntimeServicesData: EfiBootServicesData,
|
(Type & EVT_RUNTIME) ? EfiRuntimeServicesData: EfiBootServicesData,
|
||||||
sizeof (IEVENT),
|
sizeof (IEVENT),
|
||||||
(VOID **)&IEvent
|
(VOID **)&IEvent
|
||||||
);
|
);
|
||||||
@ -445,7 +445,7 @@ Returns:
|
|||||||
|
|
||||||
*Event = IEvent;
|
*Event = IEvent;
|
||||||
|
|
||||||
if (Type & EFI_EVENT_RUNTIME) {
|
if (Type & EVT_RUNTIME) {
|
||||||
//
|
//
|
||||||
// Keep a list of all RT events so we can tell the RT AP.
|
// Keep a list of all RT events so we can tell the RT AP.
|
||||||
//
|
//
|
||||||
@ -459,7 +459,7 @@ Returns:
|
|||||||
|
|
||||||
CoreAcquireEventLock ();
|
CoreAcquireEventLock ();
|
||||||
|
|
||||||
if ((Type & EFI_EVENT_NOTIFY_SIGNAL) != 0x00000000) {
|
if ((Type & EVT_NOTIFY_SIGNAL) != 0x00000000) {
|
||||||
//
|
//
|
||||||
// The Event's NotifyFunction must be queued whenever the event is signaled
|
// The Event's NotifyFunction must be queued whenever the event is signaled
|
||||||
//
|
//
|
||||||
@ -523,7 +523,7 @@ Returns:
|
|||||||
//
|
//
|
||||||
// If signalling type is a notify function, queue it
|
// If signalling type is a notify function, queue it
|
||||||
//
|
//
|
||||||
if (Event->Type & EFI_EVENT_NOTIFY_SIGNAL) {
|
if (Event->Type & EVT_NOTIFY_SIGNAL) {
|
||||||
if (Event->ExFlag) {
|
if (Event->ExFlag) {
|
||||||
//
|
//
|
||||||
// The CreateEventEx() style requires all members of the Event Group
|
// The CreateEventEx() style requires all members of the Event Group
|
||||||
@ -580,13 +580,13 @@ Returns:
|
|||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Event->Type & EFI_EVENT_NOTIFY_SIGNAL) {
|
if (Event->Type & EVT_NOTIFY_SIGNAL) {
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
Status = EFI_NOT_READY;
|
Status = EFI_NOT_READY;
|
||||||
|
|
||||||
if (!Event->SignalCount && (Event->Type & EFI_EVENT_NOTIFY_WAIT)) {
|
if (!Event->SignalCount && (Event->Type & EVT_NOTIFY_WAIT)) {
|
||||||
|
|
||||||
//
|
//
|
||||||
// Queue the wait notify function
|
// Queue the wait notify function
|
||||||
@ -654,7 +654,7 @@ Returns:
|
|||||||
//
|
//
|
||||||
// Can only WaitForEvent at TPL_APPLICATION
|
// Can only WaitForEvent at TPL_APPLICATION
|
||||||
//
|
//
|
||||||
if (gEfiCurrentTpl != EFI_TPL_APPLICATION) {
|
if (gEfiCurrentTpl != TPL_APPLICATION) {
|
||||||
return EFI_UNSUPPORTED;
|
return EFI_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -721,7 +721,7 @@ Returns:
|
|||||||
//
|
//
|
||||||
// If it's a timer event, make sure it's not pending
|
// If it's a timer event, make sure it's not pending
|
||||||
//
|
//
|
||||||
if (Event->Type & EFI_EVENT_TIMER) {
|
if (Event->Type & EVT_TIMER) {
|
||||||
CoreSetTimer (Event, TimerCancel, 0);
|
CoreSetTimer (Event, TimerCancel, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,19 +28,19 @@ Revision History
|
|||||||
//
|
//
|
||||||
// gTpl - Task priority level
|
// gTpl - Task priority level
|
||||||
//
|
//
|
||||||
EFI_TPL gEfiCurrentTpl = EFI_TPL_APPLICATION;
|
EFI_TPL gEfiCurrentTpl = TPL_APPLICATION;
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// gEventQueueLock - Protects the event queus
|
// gEventQueueLock - Protects the event queus
|
||||||
//
|
//
|
||||||
EFI_LOCK gEventQueueLock = EFI_INITIALIZE_LOCK_VARIABLE (EFI_TPL_HIGH_LEVEL);
|
EFI_LOCK gEventQueueLock = EFI_INITIALIZE_LOCK_VARIABLE (TPL_HIGH_LEVEL);
|
||||||
|
|
||||||
//
|
//
|
||||||
// gEventQueue - A list of event's to notify for each priority level
|
// gEventQueue - A list of event's to notify for each priority level
|
||||||
// gEventPending - A bitmask of the EventQueues that are pending
|
// gEventPending - A bitmask of the EventQueues that are pending
|
||||||
//
|
//
|
||||||
LIST_ENTRY gEventQueue[EFI_TPL_HIGH_LEVEL + 1];
|
LIST_ENTRY gEventQueue[TPL_HIGH_LEVEL + 1];
|
||||||
UINTN gEventPending = 0;
|
UINTN gEventPending = 0;
|
||||||
|
|
||||||
|
|
||||||
|
@ -52,10 +52,10 @@ CoreInsertEventTimer (
|
|||||||
//
|
//
|
||||||
|
|
||||||
static LIST_ENTRY mEfiTimerList = INITIALIZE_LIST_HEAD_VARIABLE (mEfiTimerList);
|
static LIST_ENTRY mEfiTimerList = INITIALIZE_LIST_HEAD_VARIABLE (mEfiTimerList);
|
||||||
static EFI_LOCK mEfiTimerLock = EFI_INITIALIZE_LOCK_VARIABLE (EFI_TPL_HIGH_LEVEL - 1);
|
static EFI_LOCK mEfiTimerLock = EFI_INITIALIZE_LOCK_VARIABLE (TPL_HIGH_LEVEL - 1);
|
||||||
static EFI_EVENT mEfiCheckTimerEvent;
|
static EFI_EVENT mEfiCheckTimerEvent;
|
||||||
|
|
||||||
static EFI_LOCK mEfiSystemTimeLock = EFI_INITIALIZE_LOCK_VARIABLE (EFI_TPL_HIGH_LEVEL);
|
static EFI_LOCK mEfiSystemTimeLock = EFI_INITIALIZE_LOCK_VARIABLE (TPL_HIGH_LEVEL);
|
||||||
static UINT64 mEfiSystemTime = 0;
|
static UINT64 mEfiSystemTime = 0;
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -85,8 +85,8 @@ Returns:
|
|||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
|
|
||||||
Status = CoreCreateEvent (
|
Status = CoreCreateEvent (
|
||||||
EFI_EVENT_NOTIFY_SIGNAL,
|
EVT_NOTIFY_SIGNAL,
|
||||||
EFI_TPL_HIGH_LEVEL - 1,
|
TPL_HIGH_LEVEL - 1,
|
||||||
CoreCheckTimers,
|
CoreCheckTimers,
|
||||||
NULL,
|
NULL,
|
||||||
&mEfiCheckTimerEvent
|
&mEfiCheckTimerEvent
|
||||||
@ -351,7 +351,7 @@ Returns:
|
|||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Type < 0 || Type > TimerRelative || !(Event->Type & EFI_EVENT_TIMER)) {
|
if (Type < 0 || Type > TimerRelative || !(Event->Type & EVT_TIMER)) {
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -118,7 +118,7 @@ Returns:
|
|||||||
//
|
//
|
||||||
// If raising to high level, disable interrupts
|
// If raising to high level, disable interrupts
|
||||||
//
|
//
|
||||||
if (NewTpl >= EFI_TPL_HIGH_LEVEL && OldTpl < EFI_TPL_HIGH_LEVEL) {
|
if (NewTpl >= TPL_HIGH_LEVEL && OldTpl < TPL_HIGH_LEVEL) {
|
||||||
CoreSetInterruptState (FALSE);
|
CoreSetInterruptState (FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -165,8 +165,8 @@ Returns:
|
|||||||
// interrupts are enabled
|
// interrupts are enabled
|
||||||
//
|
//
|
||||||
|
|
||||||
if (OldTpl >= EFI_TPL_HIGH_LEVEL && NewTpl < EFI_TPL_HIGH_LEVEL) {
|
if (OldTpl >= TPL_HIGH_LEVEL && NewTpl < TPL_HIGH_LEVEL) {
|
||||||
gEfiCurrentTpl = EFI_TPL_HIGH_LEVEL;
|
gEfiCurrentTpl = TPL_HIGH_LEVEL;
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -175,7 +175,7 @@ Returns:
|
|||||||
|
|
||||||
while ((-2 << NewTpl) & gEventPending) {
|
while ((-2 << NewTpl) & gEventPending) {
|
||||||
gEfiCurrentTpl = CoreHighestSetBit (gEventPending);
|
gEfiCurrentTpl = CoreHighestSetBit (gEventPending);
|
||||||
if (gEfiCurrentTpl < EFI_TPL_HIGH_LEVEL) {
|
if (gEfiCurrentTpl < TPL_HIGH_LEVEL) {
|
||||||
CoreSetInterruptState (TRUE);
|
CoreSetInterruptState (TRUE);
|
||||||
}
|
}
|
||||||
CoreDispatchEventNotifies (gEfiCurrentTpl);
|
CoreDispatchEventNotifies (gEfiCurrentTpl);
|
||||||
@ -191,7 +191,7 @@ Returns:
|
|||||||
// If lowering below HIGH_LEVEL, make sure
|
// If lowering below HIGH_LEVEL, make sure
|
||||||
// interrupts are enabled
|
// interrupts are enabled
|
||||||
//
|
//
|
||||||
if (gEfiCurrentTpl < EFI_TPL_HIGH_LEVEL) {
|
if (gEfiCurrentTpl < TPL_HIGH_LEVEL) {
|
||||||
CoreSetInterruptState (TRUE);
|
CoreSetInterruptState (TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ Abstract:
|
|||||||
#ifndef _EXEC_H_
|
#ifndef _EXEC_H_
|
||||||
#define _EXEC_H_
|
#define _EXEC_H_
|
||||||
|
|
||||||
#define VALID_TPL(a) ((a) <= EFI_TPL_HIGH_LEVEL)
|
#define VALID_TPL(a) ((a) <= TPL_HIGH_LEVEL)
|
||||||
|
|
||||||
//
|
//
|
||||||
// EFI_EVENT
|
// EFI_EVENT
|
||||||
|
@ -536,7 +536,7 @@ Returns:
|
|||||||
{
|
{
|
||||||
gEfiFwVolBlockEvent = CoreCreateProtocolNotifyEvent (
|
gEfiFwVolBlockEvent = CoreCreateProtocolNotifyEvent (
|
||||||
&gEfiFirmwareVolumeBlockProtocolGuid,
|
&gEfiFirmwareVolumeBlockProtocolGuid,
|
||||||
EFI_TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
NotifyFwVolBlock,
|
NotifyFwVolBlock,
|
||||||
NULL,
|
NULL,
|
||||||
&gEfiFwVolBlockNotifyReg,
|
&gEfiFwVolBlockNotifyReg,
|
||||||
|
@ -48,8 +48,8 @@ Abstract:
|
|||||||
//
|
//
|
||||||
// Module Variables
|
// Module Variables
|
||||||
//
|
//
|
||||||
EFI_LOCK mGcdMemorySpaceLock = EFI_INITIALIZE_LOCK_VARIABLE (EFI_TPL_NOTIFY);
|
EFI_LOCK mGcdMemorySpaceLock = EFI_INITIALIZE_LOCK_VARIABLE (TPL_NOTIFY);
|
||||||
EFI_LOCK mGcdIoSpaceLock = EFI_INITIALIZE_LOCK_VARIABLE (EFI_TPL_NOTIFY);
|
EFI_LOCK mGcdIoSpaceLock = EFI_INITIALIZE_LOCK_VARIABLE (TPL_NOTIFY);
|
||||||
LIST_ENTRY mGcdMemorySpaceMap = INITIALIZE_LIST_HEAD_VARIABLE (mGcdMemorySpaceMap);
|
LIST_ENTRY mGcdMemorySpaceMap = INITIALIZE_LIST_HEAD_VARIABLE (mGcdMemorySpaceMap);
|
||||||
LIST_ENTRY mGcdIoSpaceMap = INITIALIZE_LIST_HEAD_VARIABLE (mGcdIoSpaceMap);
|
LIST_ENTRY mGcdIoSpaceMap = INITIALIZE_LIST_HEAD_VARIABLE (mGcdIoSpaceMap);
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ Revision History
|
|||||||
//
|
//
|
||||||
static LIST_ENTRY mProtocolDatabase = INITIALIZE_LIST_HEAD_VARIABLE (mProtocolDatabase);
|
static LIST_ENTRY mProtocolDatabase = INITIALIZE_LIST_HEAD_VARIABLE (mProtocolDatabase);
|
||||||
LIST_ENTRY gHandleList = INITIALIZE_LIST_HEAD_VARIABLE (gHandleList);
|
LIST_ENTRY gHandleList = INITIALIZE_LIST_HEAD_VARIABLE (gHandleList);
|
||||||
EFI_LOCK gProtocolDatabaseLock = EFI_INITIALIZE_LOCK_VARIABLE (EFI_TPL_NOTIFY);
|
EFI_LOCK gProtocolDatabaseLock = EFI_INITIALIZE_LOCK_VARIABLE (TPL_NOTIFY);
|
||||||
UINT64 gHandleDatabaseKey = 0;
|
UINT64 gHandleDatabaseKey = 0;
|
||||||
|
|
||||||
|
|
||||||
@ -632,7 +632,7 @@ Returns:
|
|||||||
//
|
//
|
||||||
// Syncronize with notifcations.
|
// Syncronize with notifcations.
|
||||||
//
|
//
|
||||||
OldTpl = CoreRaiseTpl (EFI_TPL_NOTIFY);
|
OldTpl = CoreRaiseTpl (TPL_NOTIFY);
|
||||||
OldHandle = *Handle;
|
OldHandle = *Handle;
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -576,7 +576,7 @@ Returns:
|
|||||||
|
|
||||||
SecurityStatus = EFI_SUCCESS;
|
SecurityStatus = EFI_SUCCESS;
|
||||||
|
|
||||||
ASSERT (gEfiCurrentTpl < EFI_TPL_NOTIFY);
|
ASSERT (gEfiCurrentTpl < TPL_NOTIFY);
|
||||||
ParentImage = NULL;
|
ParentImage = NULL;
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -1224,7 +1224,7 @@ Returns:
|
|||||||
// Prevent possible reentrance to this function
|
// Prevent possible reentrance to this function
|
||||||
// for the same ImageHandle
|
// for the same ImageHandle
|
||||||
//
|
//
|
||||||
OldTpl = CoreRaiseTpl (EFI_TPL_NOTIFY);
|
OldTpl = CoreRaiseTpl (TPL_NOTIFY);
|
||||||
|
|
||||||
Image = CoreLoadedImageInfo (ImageHandle);
|
Image = CoreLoadedImageInfo (ImageHandle);
|
||||||
if (Image == NULL_HANDLE) {
|
if (Image == NULL_HANDLE) {
|
||||||
@ -1317,7 +1317,7 @@ Returns:
|
|||||||
// Prevent possible reentrance to this function
|
// Prevent possible reentrance to this function
|
||||||
// for the same ImageHandle
|
// for the same ImageHandle
|
||||||
//
|
//
|
||||||
OldTpl = CoreRaiseTpl (EFI_TPL_NOTIFY);
|
OldTpl = CoreRaiseTpl (TPL_NOTIFY);
|
||||||
|
|
||||||
Image = CoreLoadedImageInfo (ImageHandle);
|
Image = CoreLoadedImageInfo (ImageHandle);
|
||||||
if (Image == NULL ) {
|
if (Image == NULL ) {
|
||||||
|
@ -581,7 +581,7 @@ Returns:
|
|||||||
//
|
//
|
||||||
|
|
||||||
Status = CoreCreateEvent (
|
Status = CoreCreateEvent (
|
||||||
EFI_EVENT_NOTIFY_SIGNAL,
|
EVT_NOTIFY_SIGNAL,
|
||||||
NotifyTpl,
|
NotifyTpl,
|
||||||
NotifyFunction,
|
NotifyFunction,
|
||||||
NotifyContext,
|
NotifyContext,
|
||||||
|
@ -28,7 +28,7 @@ Revision History
|
|||||||
//
|
//
|
||||||
// MemoryLock - synchronizes access to the memory map and pool lists
|
// MemoryLock - synchronizes access to the memory map and pool lists
|
||||||
//
|
//
|
||||||
EFI_LOCK gMemoryLock = EFI_INITIALIZE_LOCK_VARIABLE (EFI_TPL_NOTIFY);
|
EFI_LOCK gMemoryLock = EFI_INITIALIZE_LOCK_VARIABLE (TPL_NOTIFY);
|
||||||
|
|
||||||
//
|
//
|
||||||
// MemoryMap - the current memory map
|
// MemoryMap - the current memory map
|
||||||
|
@ -383,7 +383,7 @@ Returns:
|
|||||||
UINTN SectionSize;
|
UINTN SectionSize;
|
||||||
|
|
||||||
|
|
||||||
OldTpl = CoreRaiseTpl (EFI_TPL_NOTIFY);
|
OldTpl = CoreRaiseTpl (TPL_NOTIFY);
|
||||||
Instance = SectionInstance + 1;
|
Instance = SectionInstance + 1;
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -484,7 +484,7 @@ Returns:
|
|||||||
LIST_ENTRY *Link;
|
LIST_ENTRY *Link;
|
||||||
CORE_SECTION_CHILD_NODE *ChildNode;
|
CORE_SECTION_CHILD_NODE *ChildNode;
|
||||||
|
|
||||||
OldTpl = CoreRaiseTpl (EFI_TPL_NOTIFY);
|
OldTpl = CoreRaiseTpl (TPL_NOTIFY);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Locate target stream
|
// Locate target stream
|
||||||
@ -1025,7 +1025,7 @@ Returns:
|
|||||||
|
|
||||||
Context->Event = CoreCreateProtocolNotifyEvent (
|
Context->Event = CoreCreateProtocolNotifyEvent (
|
||||||
Context->ChildNode->EncapsulationGuid,
|
Context->ChildNode->EncapsulationGuid,
|
||||||
EFI_TPL_NOTIFY,
|
TPL_NOTIFY,
|
||||||
NotifyGuidedExtraction,
|
NotifyGuidedExtraction,
|
||||||
Context,
|
Context,
|
||||||
&Context->Registration,
|
&Context->Registration,
|
||||||
@ -1234,7 +1234,7 @@ OpenSectionStreamEx (
|
|||||||
//
|
//
|
||||||
// Add new stream to stream list
|
// Add new stream to stream list
|
||||||
//
|
//
|
||||||
OldTpl = CoreRaiseTpl (EFI_TPL_NOTIFY);
|
OldTpl = CoreRaiseTpl (TPL_NOTIFY);
|
||||||
InsertTailList (&mStreamRoot, &NewStream->Link);
|
InsertTailList (&mStreamRoot, &NewStream->Link);
|
||||||
CoreRestoreTpl (OldTpl);
|
CoreRestoreTpl (OldTpl);
|
||||||
|
|
||||||
|
@ -296,7 +296,7 @@ FvbLibInitialize (
|
|||||||
|
|
||||||
EfiCreateProtocolNotifyEvent (
|
EfiCreateProtocolNotifyEvent (
|
||||||
&gEfiFirmwareVolumeBlockProtocolGuid,
|
&gEfiFirmwareVolumeBlockProtocolGuid,
|
||||||
EFI_TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
FvbNotificationEvent,
|
FvbNotificationEvent,
|
||||||
NULL,
|
NULL,
|
||||||
&mFvbRegistration
|
&mFvbRegistration
|
||||||
@ -306,8 +306,8 @@ FvbLibInitialize (
|
|||||||
// Register SetVirtualAddressMap () notify function
|
// Register SetVirtualAddressMap () notify function
|
||||||
//
|
//
|
||||||
// Status = gBS->CreateEvent (
|
// Status = gBS->CreateEvent (
|
||||||
// EFI_EVENT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,
|
// EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,
|
||||||
// EFI_TPL_NOTIFY,
|
// TPL_NOTIFY,
|
||||||
// EfiRuntimeLibFvbVirtualNotifyEvent,
|
// EfiRuntimeLibFvbVirtualNotifyEvent,
|
||||||
// NULL,
|
// NULL,
|
||||||
// &mEfiFvbVirtualNotifyEvent
|
// &mEfiFvbVirtualNotifyEvent
|
||||||
|
@ -296,7 +296,7 @@ FvbLibInitialize (
|
|||||||
|
|
||||||
EfiCreateProtocolNotifyEvent (
|
EfiCreateProtocolNotifyEvent (
|
||||||
&gEfiFirmwareVolumeBlockProtocolGuid,
|
&gEfiFirmwareVolumeBlockProtocolGuid,
|
||||||
EFI_TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
FvbNotificationEvent,
|
FvbNotificationEvent,
|
||||||
NULL,
|
NULL,
|
||||||
&mFvbRegistration
|
&mFvbRegistration
|
||||||
@ -306,8 +306,8 @@ FvbLibInitialize (
|
|||||||
// Register SetVirtualAddressMap () notify function
|
// Register SetVirtualAddressMap () notify function
|
||||||
//
|
//
|
||||||
// Status = gBS->CreateEvent (
|
// Status = gBS->CreateEvent (
|
||||||
// EFI_EVENT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,
|
// EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,
|
||||||
// EFI_TPL_NOTIFY,
|
// TPL_NOTIFY,
|
||||||
// EfiRuntimeLibFvbVirtualNotifyEvent,
|
// EfiRuntimeLibFvbVirtualNotifyEvent,
|
||||||
// NULL,
|
// NULL,
|
||||||
// &mEfiFvbVirtualNotifyEvent
|
// &mEfiFvbVirtualNotifyEvent
|
||||||
|
@ -104,8 +104,8 @@ RuntimeDriverLibConstruct (
|
|||||||
//
|
//
|
||||||
ASSERT (gBS != NULL);
|
ASSERT (gBS != NULL);
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
EFI_EVENT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,
|
EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,
|
||||||
EFI_TPL_NOTIFY,
|
TPL_NOTIFY,
|
||||||
RuntimeLibVirtualNotifyEvent,
|
RuntimeLibVirtualNotifyEvent,
|
||||||
NULL,
|
NULL,
|
||||||
&mEfiVirtualNotifyEvent
|
&mEfiVirtualNotifyEvent
|
||||||
|
@ -128,8 +128,8 @@ Returns:
|
|||||||
//
|
//
|
||||||
if (_gDriverSetVirtualAddressMapEvent[0] != NULL) {
|
if (_gDriverSetVirtualAddressMapEvent[0] != NULL) {
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
EFI_EVENT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,
|
EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,
|
||||||
EFI_TPL_NOTIFY,
|
TPL_NOTIFY,
|
||||||
RuntimeLibVirtualNotifyEvent,
|
RuntimeLibVirtualNotifyEvent,
|
||||||
NULL,
|
NULL,
|
||||||
&mEfiVirtualNotifyEvent
|
&mEfiVirtualNotifyEvent
|
||||||
|
@ -366,8 +366,8 @@ Returns:
|
|||||||
// Create Event to support locking StdIn Device
|
// Create Event to support locking StdIn Device
|
||||||
//
|
//
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
EFI_EVENT_TIMER | EFI_EVENT_NOTIFY_SIGNAL,
|
EVT_TIMER | EVT_NOTIFY_SIGNAL,
|
||||||
EFI_TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
ConSpliterConsoleControlLockStdInEvent,
|
ConSpliterConsoleControlLockStdInEvent,
|
||||||
NULL,
|
NULL,
|
||||||
&ConInPrivate->LockEvent
|
&ConInPrivate->LockEvent
|
||||||
@ -375,8 +375,8 @@ Returns:
|
|||||||
ASSERT_EFI_ERROR (Status);
|
ASSERT_EFI_ERROR (Status);
|
||||||
|
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
EFI_EVENT_NOTIFY_WAIT,
|
EVT_NOTIFY_WAIT,
|
||||||
EFI_TPL_NOTIFY,
|
TPL_NOTIFY,
|
||||||
ConSplitterTextInWaitForKey,
|
ConSplitterTextInWaitForKey,
|
||||||
ConInPrivate,
|
ConInPrivate,
|
||||||
&ConInPrivate->TextIn.WaitForKey
|
&ConInPrivate->TextIn.WaitForKey
|
||||||
@ -395,8 +395,8 @@ Returns:
|
|||||||
}
|
}
|
||||||
|
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
EFI_EVENT_NOTIFY_WAIT,
|
EVT_NOTIFY_WAIT,
|
||||||
EFI_TPL_NOTIFY,
|
TPL_NOTIFY,
|
||||||
ConSplitterSimplePointerWaitForInput,
|
ConSplitterSimplePointerWaitForInput,
|
||||||
ConInPrivate,
|
ConInPrivate,
|
||||||
&ConInPrivate->SimplePointer.WaitForInput
|
&ConInPrivate->SimplePointer.WaitForInput
|
||||||
|
@ -727,7 +727,7 @@ GraphicsConsoleConOutOutputString (
|
|||||||
|
|
||||||
Status = EFI_SUCCESS;
|
Status = EFI_SUCCESS;
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_NOTIFY);
|
OldTpl = gBS->RaiseTPL (TPL_NOTIFY);
|
||||||
//
|
//
|
||||||
// Current mode
|
// Current mode
|
||||||
//
|
//
|
||||||
@ -1078,7 +1078,7 @@ GraphicsConsoleConOutQueryMode (
|
|||||||
return EFI_UNSUPPORTED;
|
return EFI_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_NOTIFY);
|
OldTpl = gBS->RaiseTPL (TPL_NOTIFY);
|
||||||
Status = EFI_SUCCESS;
|
Status = EFI_SUCCESS;
|
||||||
|
|
||||||
Private = GRAPHICS_CONSOLE_CON_OUT_DEV_FROM_THIS (This);
|
Private = GRAPHICS_CONSOLE_CON_OUT_DEV_FROM_THIS (This);
|
||||||
@ -1141,7 +1141,7 @@ GraphicsConsoleConOutSetMode (
|
|||||||
UINT32 RefreshRate;
|
UINT32 RefreshRate;
|
||||||
EFI_TPL OldTpl;
|
EFI_TPL OldTpl;
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_NOTIFY);
|
OldTpl = gBS->RaiseTPL (TPL_NOTIFY);
|
||||||
|
|
||||||
Private = GRAPHICS_CONSOLE_CON_OUT_DEV_FROM_THIS (This);
|
Private = GRAPHICS_CONSOLE_CON_OUT_DEV_FROM_THIS (This);
|
||||||
GraphicsOutput = Private->GraphicsOutput;
|
GraphicsOutput = Private->GraphicsOutput;
|
||||||
@ -1343,7 +1343,7 @@ GraphicsConsoleConOutSetAttribute (
|
|||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_NOTIFY);
|
OldTpl = gBS->RaiseTPL (TPL_NOTIFY);
|
||||||
|
|
||||||
EraseCursor (This);
|
EraseCursor (This);
|
||||||
|
|
||||||
@ -1395,7 +1395,7 @@ GraphicsConsoleConOutClearScreen (
|
|||||||
EFI_GRAPHICS_OUTPUT_BLT_PIXEL Background;
|
EFI_GRAPHICS_OUTPUT_BLT_PIXEL Background;
|
||||||
EFI_TPL OldTpl;
|
EFI_TPL OldTpl;
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_NOTIFY);
|
OldTpl = gBS->RaiseTPL (TPL_NOTIFY);
|
||||||
|
|
||||||
Private = GRAPHICS_CONSOLE_CON_OUT_DEV_FROM_THIS (This);
|
Private = GRAPHICS_CONSOLE_CON_OUT_DEV_FROM_THIS (This);
|
||||||
GraphicsOutput = Private->GraphicsOutput;
|
GraphicsOutput = Private->GraphicsOutput;
|
||||||
@ -1482,7 +1482,7 @@ GraphicsConsoleConOutSetCursorPosition (
|
|||||||
|
|
||||||
Status = EFI_SUCCESS;
|
Status = EFI_SUCCESS;
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_NOTIFY);
|
OldTpl = gBS->RaiseTPL (TPL_NOTIFY);
|
||||||
|
|
||||||
Private = GRAPHICS_CONSOLE_CON_OUT_DEV_FROM_THIS (This);
|
Private = GRAPHICS_CONSOLE_CON_OUT_DEV_FROM_THIS (This);
|
||||||
ModeData = &(Private->ModeData[This->Mode->Mode]);
|
ModeData = &(Private->ModeData[This->Mode->Mode]);
|
||||||
@ -1541,7 +1541,7 @@ GraphicsConsoleConOutEnableCursor (
|
|||||||
{
|
{
|
||||||
EFI_TPL OldTpl;
|
EFI_TPL OldTpl;
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_NOTIFY);
|
OldTpl = gBS->RaiseTPL (TPL_NOTIFY);
|
||||||
|
|
||||||
EraseCursor (This);
|
EraseCursor (This);
|
||||||
|
|
||||||
|
@ -341,8 +341,8 @@ TerminalDriverBindingStart (
|
|||||||
TerminalDevice->SimpleInput.ReadKeyStroke = TerminalConInReadKeyStroke;
|
TerminalDevice->SimpleInput.ReadKeyStroke = TerminalConInReadKeyStroke;
|
||||||
|
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
EFI_EVENT_NOTIFY_WAIT,
|
EVT_NOTIFY_WAIT,
|
||||||
EFI_TPL_NOTIFY,
|
TPL_NOTIFY,
|
||||||
TerminalConInWaitForKey,
|
TerminalConInWaitForKey,
|
||||||
&TerminalDevice->SimpleInput,
|
&TerminalDevice->SimpleInput,
|
||||||
&TerminalDevice->SimpleInput.WaitForKey
|
&TerminalDevice->SimpleInput.WaitForKey
|
||||||
@ -465,8 +465,8 @@ TerminalDriverBindingStart (
|
|||||||
TerminalDevice->ResetState = RESET_STATE_DEFAULT;
|
TerminalDevice->ResetState = RESET_STATE_DEFAULT;
|
||||||
|
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
EFI_EVENT_TIMER,
|
EVT_TIMER,
|
||||||
EFI_TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
&TerminalDevice->TwoSecondTimeOut
|
&TerminalDevice->TwoSecondTimeOut
|
||||||
|
@ -632,7 +632,7 @@ Returns:
|
|||||||
InitializeListHead (&mPrivateData.DataListHead);
|
InitializeListHead (&mPrivateData.DataListHead);
|
||||||
InitializeListHead (&mPrivateData.FilterDriverListHead);
|
InitializeListHead (&mPrivateData.FilterDriverListHead);
|
||||||
|
|
||||||
EfiInitializeLock (&mPrivateData.DataLock, EFI_TPL_NOTIFY);
|
EfiInitializeLock (&mPrivateData.DataLock, TPL_NOTIFY);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Make sure we get a bigger MTC number on every boot!
|
// Make sure we get a bigger MTC number on every boot!
|
||||||
|
@ -137,8 +137,8 @@ Returns:
|
|||||||
// Create an event and register it with the filter driver
|
// Create an event and register it with the filter driver
|
||||||
//
|
//
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
EFI_EVENT_NOTIFY_SIGNAL,
|
EVT_NOTIFY_SIGNAL,
|
||||||
EFI_TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
DataHubStdErrEventHandler,
|
DataHubStdErrEventHandler,
|
||||||
mDataHub,
|
mDataHub,
|
||||||
&mDataHubStdErrEvent
|
&mDataHubStdErrEvent
|
||||||
@ -151,7 +151,7 @@ Returns:
|
|||||||
Status = mDataHub->RegisterFilterDriver (
|
Status = mDataHub->RegisterFilterDriver (
|
||||||
mDataHub,
|
mDataHub,
|
||||||
mDataHubStdErrEvent,
|
mDataHubStdErrEvent,
|
||||||
EFI_TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
DataClass,
|
DataClass,
|
||||||
NULL
|
NULL
|
||||||
);
|
);
|
||||||
|
@ -285,7 +285,7 @@ Returns:
|
|||||||
//
|
//
|
||||||
// else remove the previously installed handler
|
// else remove the previously installed handler
|
||||||
//
|
//
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_HIGH_LEVEL);
|
OldTpl = gBS->RaiseTPL (TPL_HIGH_LEVEL);
|
||||||
InterruptFlags = ProgramInterruptFlags (DISABLE_INTERRUPTS);
|
InterruptFlags = ProgramInterruptFlags (DISABLE_INTERRUPTS);
|
||||||
if (ExceptionType == EXCEPT_IPF_EXTERNAL_INTERRUPT) {
|
if (ExceptionType == EXCEPT_IPF_EXTERNAL_INTERRUPT) {
|
||||||
UnchainExternalInterrupt ();
|
UnchainExternalInterrupt ();
|
||||||
@ -305,7 +305,7 @@ Returns:
|
|||||||
// no user handler installed on this vector
|
// no user handler installed on this vector
|
||||||
//
|
//
|
||||||
if (NewCallback != NULL) {
|
if (NewCallback != NULL) {
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_HIGH_LEVEL);
|
OldTpl = gBS->RaiseTPL (TPL_HIGH_LEVEL);
|
||||||
InterruptFlags = ProgramInterruptFlags (DISABLE_INTERRUPTS);
|
InterruptFlags = ProgramInterruptFlags (DISABLE_INTERRUPTS);
|
||||||
if (ExceptionType == EXCEPT_IPF_EXTERNAL_INTERRUPT) {
|
if (ExceptionType == EXCEPT_IPF_EXTERNAL_INTERRUPT) {
|
||||||
ChainExternalInterrupt (NewCallback);
|
ChainExternalInterrupt (NewCallback);
|
||||||
|
@ -685,8 +685,8 @@ Returns:
|
|||||||
// For PeriodicCallback
|
// For PeriodicCallback
|
||||||
//
|
//
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
EFI_EVENT_TIMER | EFI_EVENT_NOTIFY_SIGNAL,
|
EVT_TIMER | EVT_NOTIFY_SIGNAL,
|
||||||
EFI_TPL_NOTIFY,
|
TPL_NOTIFY,
|
||||||
EbcPeriodicNotifyFunction,
|
EbcPeriodicNotifyFunction,
|
||||||
&mVmPtr,
|
&mVmPtr,
|
||||||
&mEbcPeriodicEvent
|
&mEbcPeriodicEvent
|
||||||
@ -1041,7 +1041,7 @@ GetEBCStack(
|
|||||||
{
|
{
|
||||||
UINTN Index;
|
UINTN Index;
|
||||||
EFI_TPL OldTpl;
|
EFI_TPL OldTpl;
|
||||||
OldTpl = gBS->RaiseTPL(EFI_TPL_HIGH_LEVEL);
|
OldTpl = gBS->RaiseTPL(TPL_HIGH_LEVEL);
|
||||||
for (Index = 0; Index < mStackNum; Index ++) {
|
for (Index = 0; Index < mStackNum; Index ++) {
|
||||||
if (mStackBufferIndex[Index] == NULL) {
|
if (mStackBufferIndex[Index] == NULL) {
|
||||||
mStackBufferIndex[Index] = Handle;
|
mStackBufferIndex[Index] = Handle;
|
||||||
|
@ -824,7 +824,7 @@ Returns:
|
|||||||
return EFI_OUT_OF_RESOURCES;
|
return EFI_OUT_OF_RESOURCES;
|
||||||
}
|
}
|
||||||
|
|
||||||
EfiInitializeLock(&mVariableModuleGlobal->VariableGlobal[Physical].VariableServicesLock, EFI_TPL_NOTIFY);
|
EfiInitializeLock(&mVariableModuleGlobal->VariableGlobal[Physical].VariableServicesLock, TPL_NOTIFY);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Intialize volatile variable store
|
// Intialize volatile variable store
|
||||||
|
@ -84,7 +84,7 @@ Returns:
|
|||||||
//
|
//
|
||||||
// Update the monotonic counter with a lock
|
// Update the monotonic counter with a lock
|
||||||
//
|
//
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_HIGH_LEVEL);
|
OldTpl = gBS->RaiseTPL (TPL_HIGH_LEVEL);
|
||||||
*Count = mEfiMtc;
|
*Count = mEfiMtc;
|
||||||
mEfiMtc++;
|
mEfiMtc++;
|
||||||
gBS->RestoreTPL (OldTpl);
|
gBS->RestoreTPL (OldTpl);
|
||||||
@ -162,7 +162,7 @@ Returns:
|
|||||||
//
|
//
|
||||||
// Use a lock if called before ExitBootServices()
|
// Use a lock if called before ExitBootServices()
|
||||||
//
|
//
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_HIGH_LEVEL);
|
OldTpl = gBS->RaiseTPL (TPL_HIGH_LEVEL);
|
||||||
*HighCount = (UINT32) RShiftU64 (mEfiMtc, 32) + 1;
|
*HighCount = (UINT32) RShiftU64 (mEfiMtc, 32) + 1;
|
||||||
mEfiMtc = LShiftU64 (*HighCount, 32);
|
mEfiMtc = LShiftU64 (*HighCount, 32);
|
||||||
gBS->RestoreTPL (OldTpl);
|
gBS->RestoreTPL (OldTpl);
|
||||||
@ -243,8 +243,8 @@ Returns:
|
|||||||
// Initialize event to handle overflows
|
// Initialize event to handle overflows
|
||||||
//
|
//
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
EFI_EVENT_NOTIFY_SIGNAL,
|
EVT_NOTIFY_SIGNAL,
|
||||||
EFI_TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
EfiMtcEventHandler,
|
EfiMtcEventHandler,
|
||||||
NULL,
|
NULL,
|
||||||
&mEfiMtcEvent
|
&mEfiMtcEvent
|
||||||
|
@ -417,8 +417,8 @@ WaitForReceive (
|
|||||||
// Create callback event and set timer
|
// Create callback event and set timer
|
||||||
//
|
//
|
||||||
StatCode = gBS->CreateEvent (
|
StatCode = gBS->CreateEvent (
|
||||||
EFI_EVENT_TIMER,
|
EVT_TIMER,
|
||||||
EFI_TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
&CallbackEvent
|
&CallbackEvent
|
||||||
@ -622,8 +622,8 @@ SendPacket (
|
|||||||
// headersize should be zero if not filled in
|
// headersize should be zero if not filled in
|
||||||
//
|
//
|
||||||
StatCode = gBS->CreateEvent (
|
StatCode = gBS->CreateEvent (
|
||||||
EFI_EVENT_TIMER,
|
EVT_TIMER,
|
||||||
EFI_TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
&TimeoutEvent
|
&TimeoutEvent
|
||||||
@ -695,8 +695,8 @@ SendPacket (
|
|||||||
// immediately
|
// immediately
|
||||||
//
|
//
|
||||||
StatCode = gBS->CreateEvent (
|
StatCode = gBS->CreateEvent (
|
||||||
EFI_EVENT_TIMER,
|
EVT_TIMER,
|
||||||
EFI_TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
&TimeoutEvent
|
&TimeoutEvent
|
||||||
@ -2159,10 +2159,10 @@ PxeBcDriverStart (
|
|||||||
//
|
//
|
||||||
// Lock access, just in case
|
// Lock access, just in case
|
||||||
//
|
//
|
||||||
EfiInitializeLock (&Private->Lock, EFI_TPL_CALLBACK);
|
EfiInitializeLock (&Private->Lock, TPL_CALLBACK);
|
||||||
EfiAcquireLock (&Private->Lock);
|
EfiAcquireLock (&Private->Lock);
|
||||||
|
|
||||||
EfiInitializeLock (&pLF->Lock, EFI_TPL_CALLBACK);
|
EfiInitializeLock (&pLF->Lock, TPL_CALLBACK);
|
||||||
EfiAcquireLock (&pLF->Lock);
|
EfiAcquireLock (&pLF->Lock);
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -543,8 +543,8 @@ Returns:
|
|||||||
//
|
//
|
||||||
//
|
//
|
||||||
StatCode = gBS->CreateEvent (
|
StatCode = gBS->CreateEvent (
|
||||||
EFI_EVENT_TIMER,
|
EVT_TIMER,
|
||||||
EFI_TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
&TimeoutEvent
|
&TimeoutEvent
|
||||||
|
@ -587,8 +587,8 @@ SetStationIP (
|
|||||||
}
|
}
|
||||||
|
|
||||||
EfiStatus = gBS->CreateEvent (
|
EfiStatus = gBS->CreateEvent (
|
||||||
EFI_EVENT_TIMER,
|
EVT_TIMER,
|
||||||
EFI_TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
&Private->Igmpv1TimeoutEvent
|
&Private->Igmpv1TimeoutEvent
|
||||||
@ -1283,8 +1283,8 @@ GetOffers (
|
|||||||
//
|
//
|
||||||
Private->GotProxy[DHCP_ONLY_IX] = 1;
|
Private->GotProxy[DHCP_ONLY_IX] = 1;
|
||||||
StatCode = gBS->CreateEvent (
|
StatCode = gBS->CreateEvent (
|
||||||
EFI_EVENT_TIMER,
|
EVT_TIMER,
|
||||||
EFI_TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
&TimeoutEvent
|
&TimeoutEvent
|
||||||
@ -1522,8 +1522,8 @@ GetBINLAck (
|
|||||||
//
|
//
|
||||||
//
|
//
|
||||||
StatCode = gBS->CreateEvent (
|
StatCode = gBS->CreateEvent (
|
||||||
EFI_EVENT_TIMER,
|
EVT_TIMER,
|
||||||
EFI_TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
&TimeoutEvent
|
&TimeoutEvent
|
||||||
@ -1770,8 +1770,8 @@ TryFinishDORA (
|
|||||||
//
|
//
|
||||||
//
|
//
|
||||||
StatCode = gBS->CreateEvent (
|
StatCode = gBS->CreateEvent (
|
||||||
EFI_EVENT_TIMER,
|
EVT_TIMER,
|
||||||
EFI_TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
&TimeoutEvent
|
&TimeoutEvent
|
||||||
@ -2599,8 +2599,8 @@ Returns:
|
|||||||
//
|
//
|
||||||
//
|
//
|
||||||
StatCode = gBS->CreateEvent (
|
StatCode = gBS->CreateEvent (
|
||||||
EFI_EVENT_TIMER,
|
EVT_TIMER,
|
||||||
EFI_TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
&TimeoutEvent
|
&TimeoutEvent
|
||||||
|
@ -83,8 +83,8 @@ Returns:
|
|||||||
}
|
}
|
||||||
|
|
||||||
EfiStatus = gBS->CreateEvent (
|
EfiStatus = gBS->CreateEvent (
|
||||||
EFI_EVENT_TIMER,
|
EVT_TIMER,
|
||||||
EFI_TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
&Private->IgmpGroupEvent[TimerId]
|
&Private->IgmpGroupEvent[TimerId]
|
||||||
@ -405,8 +405,8 @@ Returns:
|
|||||||
}
|
}
|
||||||
|
|
||||||
EfiStatus = gBS->CreateEvent (
|
EfiStatus = gBS->CreateEvent (
|
||||||
EFI_EVENT_TIMER,
|
EVT_TIMER,
|
||||||
EFI_TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
&Private->Igmpv1TimeoutEvent
|
&Private->Igmpv1TimeoutEvent
|
||||||
|
@ -117,8 +117,8 @@ Returns:
|
|||||||
//
|
//
|
||||||
//
|
//
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
EFI_EVENT_TIMER,
|
EVT_TIMER,
|
||||||
EFI_TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
&TimeoutEvent
|
&TimeoutEvent
|
||||||
|
@ -307,8 +307,8 @@ Returns:
|
|||||||
//
|
//
|
||||||
//
|
//
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
EFI_EVENT_TIMER,
|
EVT_TIMER,
|
||||||
EFI_TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
&TimeoutEvent
|
&TimeoutEvent
|
||||||
@ -332,8 +332,8 @@ Returns:
|
|||||||
//
|
//
|
||||||
//
|
//
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
EFI_EVENT_TIMER,
|
EVT_TIMER,
|
||||||
EFI_TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
&SecondsEvent
|
&SecondsEvent
|
||||||
|
@ -558,8 +558,8 @@ Returns:
|
|||||||
// Setup timeout event and start timer.
|
// Setup timeout event and start timer.
|
||||||
//
|
//
|
||||||
efi_status = gBS->CreateEvent (
|
efi_status = gBS->CreateEvent (
|
||||||
EFI_EVENT_TIMER | EFI_EVENT_NOTIFY_SIGNAL,
|
EVT_TIMER | EVT_NOTIFY_SIGNAL,
|
||||||
EFI_TPL_NOTIFY,
|
TPL_NOTIFY,
|
||||||
&timeout_notify,
|
&timeout_notify,
|
||||||
Private,
|
Private,
|
||||||
&Private->TimeoutEvent
|
&Private->TimeoutEvent
|
||||||
@ -588,8 +588,8 @@ Returns:
|
|||||||
// Setup periodic event for callbacks
|
// Setup periodic event for callbacks
|
||||||
//
|
//
|
||||||
efi_status = gBS->CreateEvent (
|
efi_status = gBS->CreateEvent (
|
||||||
EFI_EVENT_TIMER | EFI_EVENT_NOTIFY_SIGNAL,
|
EVT_TIMER | EVT_NOTIFY_SIGNAL,
|
||||||
EFI_TPL_NOTIFY,
|
TPL_NOTIFY,
|
||||||
&periodic_notify,
|
&periodic_notify,
|
||||||
Private,
|
Private,
|
||||||
&Private->PeriodicEvent
|
&Private->PeriodicEvent
|
||||||
|
@ -112,7 +112,7 @@ Returns:
|
|||||||
// created at a lower level (TPL_CALLBACK) it gives an assert!
|
// created at a lower level (TPL_CALLBACK) it gives an assert!
|
||||||
//
|
//
|
||||||
if (mInitializeLock) {
|
if (mInitializeLock) {
|
||||||
EfiInitializeLock (&mLock, EFI_TPL_NOTIFY);
|
EfiInitializeLock (&mLock, TPL_NOTIFY);
|
||||||
mInitializeLock = FALSE;
|
mInitializeLock = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -190,8 +190,8 @@ Returns:
|
|||||||
//
|
//
|
||||||
//
|
//
|
||||||
EfiStatus = gBS->CreateEvent (
|
EfiStatus = gBS->CreateEvent (
|
||||||
EFI_EVENT_NOTIFY_WAIT,
|
EVT_NOTIFY_WAIT,
|
||||||
EFI_TPL_NOTIFY,
|
TPL_NOTIFY,
|
||||||
&SnpWaitForPacketNotify,
|
&SnpWaitForPacketNotify,
|
||||||
snp,
|
snp,
|
||||||
&snp->snp.WaitForPacket
|
&snp->snp.WaitForPacket
|
||||||
|
@ -453,7 +453,7 @@ Arguments:
|
|||||||
|
|
||||||
snp->Signature = SNP_DRIVER_SIGNATURE;
|
snp->Signature = SNP_DRIVER_SIGNATURE;
|
||||||
|
|
||||||
EfiInitializeLock (&snp->lock, EFI_TPL_NOTIFY);
|
EfiInitializeLock (&snp->lock, TPL_NOTIFY);
|
||||||
|
|
||||||
snp->snp.Revision = EFI_SIMPLE_NETWORK_PROTOCOL_REVISION;
|
snp->snp.Revision = EFI_SIMPLE_NETWORK_PROTOCOL_REVISION;
|
||||||
snp->snp.Start = snp_undi32_start;
|
snp->snp.Start = snp_undi32_start;
|
||||||
|
@ -17,7 +17,7 @@ Module Name: Pcd.c
|
|||||||
|
|
||||||
#include "Service.h"
|
#include "Service.h"
|
||||||
|
|
||||||
EFI_LOCK mPcdDatabaseLock = EFI_INITIALIZE_LOCK_VARIABLE(EFI_TPL_CALLBACK);
|
EFI_LOCK mPcdDatabaseLock = EFI_INITIALIZE_LOCK_VARIABLE(TPL_CALLBACK);
|
||||||
|
|
||||||
PCD_PROTOCOL mPcdInstance = {
|
PCD_PROTOCOL mPcdInstance = {
|
||||||
DxePcdSetSku,
|
DxePcdSetSku,
|
||||||
|
@ -342,7 +342,7 @@ Returns:
|
|||||||
//
|
//
|
||||||
for (Link = mRuntime.EventHead.ForwardLink; Link != &mRuntime.EventHead; Link = Link->ForwardLink) {
|
for (Link = mRuntime.EventHead.ForwardLink; Link != &mRuntime.EventHead; Link = Link->ForwardLink) {
|
||||||
RuntimeEvent = _CR (Link, EFI_RUNTIME_EVENT_ENTRY, Link);
|
RuntimeEvent = _CR (Link, EFI_RUNTIME_EVENT_ENTRY, Link);
|
||||||
if ((RuntimeEvent->Type & EFI_EVENT_SIGNAL_VIRTUAL_ADDRESS_CHANGE) == EFI_EVENT_SIGNAL_VIRTUAL_ADDRESS_CHANGE) {
|
if ((RuntimeEvent->Type & EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE) == EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE) {
|
||||||
RuntimeEvent->NotifyFunction (
|
RuntimeEvent->NotifyFunction (
|
||||||
RuntimeEvent->Event,
|
RuntimeEvent->Event,
|
||||||
RuntimeEvent->NotifyContext
|
RuntimeEvent->NotifyContext
|
||||||
|
@ -51,7 +51,7 @@ AcquireRecordBuffer (
|
|||||||
LIST_ENTRY *Node;
|
LIST_ENTRY *Node;
|
||||||
UINT32 Index;
|
UINT32 Index;
|
||||||
|
|
||||||
CurrentTpl = gBS->RaiseTPL (EFI_TPL_HIGH_LEVEL);
|
CurrentTpl = gBS->RaiseTPL (TPL_HIGH_LEVEL);
|
||||||
|
|
||||||
if (!IsListEmpty (&mRecordsBuffer)) {
|
if (!IsListEmpty (&mRecordsBuffer)) {
|
||||||
Node = GetFirstNode (&mRecordsBuffer);
|
Node = GetFirstNode (&mRecordsBuffer);
|
||||||
@ -59,7 +59,7 @@ AcquireRecordBuffer (
|
|||||||
|
|
||||||
Record = _CR (Node, DATAHUB_STATUSCODE_RECORD, Node);
|
Record = _CR (Node, DATAHUB_STATUSCODE_RECORD, Node);
|
||||||
} else {
|
} else {
|
||||||
if (CurrentTpl > EFI_TPL_NOTIFY) {
|
if (CurrentTpl > TPL_NOTIFY) {
|
||||||
gBS->RestoreTPL (CurrentTpl);
|
gBS->RestoreTPL (CurrentTpl);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@ -70,7 +70,7 @@ AcquireRecordBuffer (
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
CurrentTpl = gBS->RaiseTPL (EFI_TPL_HIGH_LEVEL);
|
CurrentTpl = gBS->RaiseTPL (TPL_HIGH_LEVEL);
|
||||||
for (Index = 1; Index < 16; Index++) {
|
for (Index = 1; Index < 16; Index++) {
|
||||||
InsertTailList (&mRecordsBuffer, &Record[Index].Node);
|
InsertTailList (&mRecordsBuffer, &Record[Index].Node);
|
||||||
}
|
}
|
||||||
@ -103,7 +103,7 @@ RetrieveRecord (
|
|||||||
LIST_ENTRY *Node;
|
LIST_ENTRY *Node;
|
||||||
EFI_TPL CurrentTpl;
|
EFI_TPL CurrentTpl;
|
||||||
|
|
||||||
CurrentTpl = gBS->RaiseTPL (EFI_TPL_HIGH_LEVEL);
|
CurrentTpl = gBS->RaiseTPL (TPL_HIGH_LEVEL);
|
||||||
|
|
||||||
if (!IsListEmpty (&mRecordsFifo)) {
|
if (!IsListEmpty (&mRecordsFifo)) {
|
||||||
Node = GetFirstNode (&mRecordsFifo);
|
Node = GetFirstNode (&mRecordsFifo);
|
||||||
@ -315,8 +315,8 @@ DataHubStatusCodeInitializeWorker (
|
|||||||
// Create a Notify Event to log data in Data Hub
|
// Create a Notify Event to log data in Data Hub
|
||||||
//
|
//
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
EFI_EVENT_NOTIFY_SIGNAL,
|
EVT_NOTIFY_SIGNAL,
|
||||||
EFI_TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
LogDataHubEventCallBack,
|
LogDataHubEventCallBack,
|
||||||
NULL,
|
NULL,
|
||||||
&mLogDataHubEvent
|
&mLogDataHubEvent
|
||||||
|
@ -99,10 +99,10 @@ SerialStatusCodeReportWorker (
|
|||||||
if (EfiAtRuntime ()) {
|
if (EfiAtRuntime ()) {
|
||||||
return EFI_DEVICE_ERROR;
|
return EFI_DEVICE_ERROR;
|
||||||
}
|
}
|
||||||
CurrentTpl = gBS->RaiseTPL (EFI_TPL_HIGH_LEVEL);
|
CurrentTpl = gBS->RaiseTPL (TPL_HIGH_LEVEL);
|
||||||
gBS->RestoreTPL (CurrentTpl);
|
gBS->RestoreTPL (CurrentTpl);
|
||||||
|
|
||||||
if (CurrentTpl > EFI_TPL_CALLBACK ) {
|
if (CurrentTpl > TPL_CALLBACK ) {
|
||||||
return EFI_DEVICE_ERROR;
|
return EFI_DEVICE_ERROR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -291,7 +291,7 @@ Returns:
|
|||||||
//
|
//
|
||||||
// Create a timer event
|
// Create a timer event
|
||||||
//
|
//
|
||||||
Status = gBS->CreateEvent (EFI_EVENT_TIMER, 0, NULL, NULL, &TimerEvent);
|
Status = gBS->CreateEvent (EVT_TIMER, 0, NULL, NULL, &TimerEvent);
|
||||||
if (!EFI_ERROR (Status)) {
|
if (!EFI_ERROR (Status)) {
|
||||||
//
|
//
|
||||||
// Set the timer event
|
// Set the timer event
|
||||||
@ -324,7 +324,7 @@ Returns:
|
|||||||
Timeout = ONE_SECOND;
|
Timeout = ONE_SECOND;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
Status = gBS->CreateEvent (EFI_EVENT_TIMER, 0, NULL, NULL, &TimerEvent);
|
Status = gBS->CreateEvent (EVT_TIMER, 0, NULL, NULL, &TimerEvent);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Set the timer event
|
// Set the timer event
|
||||||
|
@ -1309,7 +1309,7 @@ Returns:
|
|||||||
return EFI_OUT_OF_RESOURCES;
|
return EFI_OUT_OF_RESOURCES;
|
||||||
}
|
}
|
||||||
|
|
||||||
EfiInitializeLock(&mVariableModuleGlobal->VariableGlobal[Physical].VariableServicesLock, EFI_TPL_NOTIFY);
|
EfiInitializeLock(&mVariableModuleGlobal->VariableGlobal[Physical].VariableServicesLock, TPL_NOTIFY);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Allocate memory for volatile variable store
|
// Allocate memory for volatile variable store
|
||||||
|
@ -283,8 +283,8 @@ Returns:
|
|||||||
// Create the timer event used to implement a simple watchdog timer
|
// Create the timer event used to implement a simple watchdog timer
|
||||||
//
|
//
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
EFI_EVENT_TIMER | EFI_EVENT_NOTIFY_SIGNAL,
|
EVT_TIMER | EVT_NOTIFY_SIGNAL,
|
||||||
EFI_TPL_NOTIFY,
|
TPL_NOTIFY,
|
||||||
WatchdogTimerDriverExpires,
|
WatchdogTimerDriverExpires,
|
||||||
NULL,
|
NULL,
|
||||||
&mWatchdogTimerEvent
|
&mWatchdogTimerEvent
|
||||||
|
@ -321,8 +321,8 @@ Returns:
|
|||||||
// Install notify function to fetch memory data through WinNtIo protocol and store to data hub.
|
// Install notify function to fetch memory data through WinNtIo protocol and store to data hub.
|
||||||
//
|
//
|
||||||
EfiStatus = gBS->CreateEvent (
|
EfiStatus = gBS->CreateEvent (
|
||||||
EFI_EVENT_NOTIFY_SIGNAL,
|
EVT_NOTIFY_SIGNAL,
|
||||||
EFI_TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
WinNtIoProtocolNotifyFunction,
|
WinNtIoProtocolNotifyFunction,
|
||||||
ImageHandle,
|
ImageHandle,
|
||||||
&Event
|
&Event
|
||||||
|
@ -433,7 +433,7 @@ Returns:
|
|||||||
Private = AllocatePool (sizeof (WIN_NT_BLOCK_IO_PRIVATE));
|
Private = AllocatePool (sizeof (WIN_NT_BLOCK_IO_PRIVATE));
|
||||||
ASSERT (Private != NULL);
|
ASSERT (Private != NULL);
|
||||||
|
|
||||||
EfiInitializeLock (&Private->Lock, EFI_TPL_NOTIFY);
|
EfiInitializeLock (&Private->Lock, TPL_NOTIFY);
|
||||||
|
|
||||||
Private->WinNtThunk = WinNtIo->WinNtThunk;
|
Private->WinNtThunk = WinNtIo->WinNtThunk;
|
||||||
|
|
||||||
@ -849,7 +849,7 @@ WinNtBlockIoReadBlocks (
|
|||||||
DWORD BytesRead;
|
DWORD BytesRead;
|
||||||
EFI_TPL OldTpl;
|
EFI_TPL OldTpl;
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);
|
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
|
||||||
|
|
||||||
Private = WIN_NT_BLOCK_IO_PRIVATE_DATA_FROM_THIS (This);
|
Private = WIN_NT_BLOCK_IO_PRIVATE_DATA_FROM_THIS (This);
|
||||||
|
|
||||||
@ -917,7 +917,7 @@ WinNtBlockIoWriteBlocks (
|
|||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
EFI_TPL OldTpl;
|
EFI_TPL OldTpl;
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);
|
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
|
||||||
|
|
||||||
Private = WIN_NT_BLOCK_IO_PRIVATE_DATA_FROM_THIS (This);
|
Private = WIN_NT_BLOCK_IO_PRIVATE_DATA_FROM_THIS (This);
|
||||||
|
|
||||||
@ -996,7 +996,7 @@ WinNtBlockIoResetBlock (
|
|||||||
WIN_NT_BLOCK_IO_PRIVATE *Private;
|
WIN_NT_BLOCK_IO_PRIVATE *Private;
|
||||||
EFI_TPL OldTpl;
|
EFI_TPL OldTpl;
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);
|
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
|
||||||
|
|
||||||
Private = WIN_NT_BLOCK_IO_PRIVATE_DATA_FROM_THIS (This);
|
Private = WIN_NT_BLOCK_IO_PRIVATE_DATA_FROM_THIS (This);
|
||||||
|
|
||||||
|
@ -345,8 +345,8 @@ Returns:
|
|||||||
Private->SimpleTextIn.ReadKeyStroke = WinNtSimpleTextInReadKeyStroke;
|
Private->SimpleTextIn.ReadKeyStroke = WinNtSimpleTextInReadKeyStroke;
|
||||||
|
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
EFI_EVENT_NOTIFY_WAIT,
|
EVT_NOTIFY_WAIT,
|
||||||
EFI_TPL_NOTIFY,
|
TPL_NOTIFY,
|
||||||
WinNtSimpleTextInWaitForKey,
|
WinNtSimpleTextInWaitForKey,
|
||||||
Private,
|
Private,
|
||||||
&Private->SimpleTextIn.WaitForKey
|
&Private->SimpleTextIn.WaitForKey
|
||||||
|
@ -323,7 +323,7 @@ WinNtGopInitializeSimpleTextInForWindow (
|
|||||||
Private->SimpleTextIn.ReadKeyStroke = WinNtGopSimpleTextInReadKeyStroke;
|
Private->SimpleTextIn.ReadKeyStroke = WinNtGopSimpleTextInReadKeyStroke;
|
||||||
|
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
EVENT_NOTIFY_WAIT,
|
EVT_NOTIFY_WAIT,
|
||||||
TPL_NOTIFY,
|
TPL_NOTIFY,
|
||||||
WinNtGopSimpleTextInWaitForKey,
|
WinNtGopSimpleTextInWaitForKey,
|
||||||
Private,
|
Private,
|
||||||
|
@ -835,7 +835,7 @@ WinNtGopStartWindow (
|
|||||||
// Register to be notified on exit boot services so we can destroy the window.
|
// Register to be notified on exit boot services so we can destroy the window.
|
||||||
//
|
//
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
EVENT_SIGNAL_EXIT_BOOT_SERVICES,
|
EVT_SIGNAL_EXIT_BOOT_SERVICES,
|
||||||
TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
KillNtGopThread,
|
KillNtGopThread,
|
||||||
Private,
|
Private,
|
||||||
|
@ -637,7 +637,7 @@ Returns:
|
|||||||
WIN_NT_SERIAL_IO_PRIVATE_DATA *Private;
|
WIN_NT_SERIAL_IO_PRIVATE_DATA *Private;
|
||||||
EFI_TPL Tpl;
|
EFI_TPL Tpl;
|
||||||
|
|
||||||
Tpl = gBS->RaiseTPL (EFI_TPL_NOTIFY);
|
Tpl = gBS->RaiseTPL (TPL_NOTIFY);
|
||||||
|
|
||||||
Private = WIN_NT_SERIAL_IO_PRIVATE_DATA_FROM_THIS (This);
|
Private = WIN_NT_SERIAL_IO_PRIVATE_DATA_FROM_THIS (This);
|
||||||
|
|
||||||
@ -709,7 +709,7 @@ Returns:
|
|||||||
EFI_DEVICE_PATH_PROTOCOL *NewDevicePath;
|
EFI_DEVICE_PATH_PROTOCOL *NewDevicePath;
|
||||||
EFI_TPL Tpl;
|
EFI_TPL Tpl;
|
||||||
|
|
||||||
Tpl = gBS->RaiseTPL (EFI_TPL_NOTIFY);
|
Tpl = gBS->RaiseTPL (TPL_NOTIFY);
|
||||||
|
|
||||||
Private = WIN_NT_SERIAL_IO_PRIVATE_DATA_FROM_THIS (This);
|
Private = WIN_NT_SERIAL_IO_PRIVATE_DATA_FROM_THIS (This);
|
||||||
|
|
||||||
@ -906,7 +906,7 @@ Returns:
|
|||||||
DCB Dcb;
|
DCB Dcb;
|
||||||
EFI_TPL Tpl;
|
EFI_TPL Tpl;
|
||||||
|
|
||||||
Tpl = gBS->RaiseTPL (EFI_TPL_NOTIFY);
|
Tpl = gBS->RaiseTPL (TPL_NOTIFY);
|
||||||
|
|
||||||
Private = WIN_NT_SERIAL_IO_PRIVATE_DATA_FROM_THIS (This);
|
Private = WIN_NT_SERIAL_IO_PRIVATE_DATA_FROM_THIS (This);
|
||||||
|
|
||||||
@ -996,7 +996,7 @@ Returns:
|
|||||||
DCB Dcb;
|
DCB Dcb;
|
||||||
EFI_TPL Tpl;
|
EFI_TPL Tpl;
|
||||||
|
|
||||||
Tpl = gBS->RaiseTPL (EFI_TPL_NOTIFY);
|
Tpl = gBS->RaiseTPL (TPL_NOTIFY);
|
||||||
|
|
||||||
Private = WIN_NT_SERIAL_IO_PRIVATE_DATA_FROM_THIS (This);
|
Private = WIN_NT_SERIAL_IO_PRIVATE_DATA_FROM_THIS (This);
|
||||||
|
|
||||||
@ -1114,7 +1114,7 @@ Returns:
|
|||||||
UINT32 Control;
|
UINT32 Control;
|
||||||
EFI_TPL Tpl;
|
EFI_TPL Tpl;
|
||||||
|
|
||||||
Tpl = gBS->RaiseTPL (EFI_TPL_NOTIFY);
|
Tpl = gBS->RaiseTPL (TPL_NOTIFY);
|
||||||
|
|
||||||
Private = WIN_NT_SERIAL_IO_PRIVATE_DATA_FROM_THIS (This);
|
Private = WIN_NT_SERIAL_IO_PRIVATE_DATA_FROM_THIS (This);
|
||||||
|
|
||||||
@ -1216,7 +1216,7 @@ Returns:
|
|||||||
UINT32 Control;
|
UINT32 Control;
|
||||||
EFI_TPL Tpl;
|
EFI_TPL Tpl;
|
||||||
|
|
||||||
Tpl = gBS->RaiseTPL (EFI_TPL_NOTIFY);
|
Tpl = gBS->RaiseTPL (TPL_NOTIFY);
|
||||||
|
|
||||||
Private = WIN_NT_SERIAL_IO_PRIVATE_DATA_FROM_THIS (This);
|
Private = WIN_NT_SERIAL_IO_PRIVATE_DATA_FROM_THIS (This);
|
||||||
|
|
||||||
|
@ -478,7 +478,7 @@ Returns:
|
|||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);
|
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
|
||||||
|
|
||||||
Private = WIN_NT_SIMPLE_FILE_SYSTEM_PRIVATE_DATA_FROM_THIS (This);
|
Private = WIN_NT_SIMPLE_FILE_SYSTEM_PRIVATE_DATA_FROM_THIS (This);
|
||||||
|
|
||||||
@ -1081,7 +1081,7 @@ Returns:
|
|||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);
|
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
|
||||||
|
|
||||||
PrivateFile = WIN_NT_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);
|
PrivateFile = WIN_NT_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);
|
||||||
|
|
||||||
@ -1143,7 +1143,7 @@ Returns:
|
|||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);
|
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
|
||||||
|
|
||||||
PrivateFile = WIN_NT_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);
|
PrivateFile = WIN_NT_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);
|
||||||
|
|
||||||
@ -1277,7 +1277,7 @@ Returns:
|
|||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);
|
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
|
||||||
|
|
||||||
PrivateFile = WIN_NT_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);
|
PrivateFile = WIN_NT_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);
|
||||||
|
|
||||||
@ -1486,7 +1486,7 @@ Returns:
|
|||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);
|
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
|
||||||
|
|
||||||
PrivateFile = WIN_NT_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);
|
PrivateFile = WIN_NT_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);
|
||||||
|
|
||||||
@ -1560,7 +1560,7 @@ Returns:
|
|||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);
|
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
|
||||||
|
|
||||||
PrivateFile = WIN_NT_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);
|
PrivateFile = WIN_NT_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);
|
||||||
|
|
||||||
@ -1648,7 +1648,7 @@ Returns:
|
|||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);
|
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
|
||||||
PrivateFile = WIN_NT_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);
|
PrivateFile = WIN_NT_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);
|
||||||
|
|
||||||
PositionHigh = 0;
|
PositionHigh = 0;
|
||||||
@ -1913,7 +1913,7 @@ Returns:
|
|||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);
|
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
|
||||||
|
|
||||||
PrivateFile = WIN_NT_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);
|
PrivateFile = WIN_NT_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);
|
||||||
PrivateRoot = WIN_NT_SIMPLE_FILE_SYSTEM_PRIVATE_DATA_FROM_THIS (PrivateFile->SimpleFileSystem);
|
PrivateRoot = WIN_NT_SIMPLE_FILE_SYSTEM_PRIVATE_DATA_FROM_THIS (PrivateFile->SimpleFileSystem);
|
||||||
@ -2115,7 +2115,7 @@ Returns:
|
|||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);
|
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Initialise locals.
|
// Initialise locals.
|
||||||
@ -2643,7 +2643,7 @@ Returns:
|
|||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);
|
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
|
||||||
|
|
||||||
PrivateFile = WIN_NT_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);
|
PrivateFile = WIN_NT_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);
|
||||||
|
|
||||||
|
@ -222,7 +222,7 @@ Returns:
|
|||||||
//
|
//
|
||||||
// Enter critical section
|
// Enter critical section
|
||||||
//
|
//
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_NOTIFY);
|
OldTpl = gBS->RaiseTPL (TPL_NOTIFY);
|
||||||
|
|
||||||
//
|
//
|
||||||
// A reset is draining the Queue
|
// A reset is draining the Queue
|
||||||
@ -270,7 +270,7 @@ Returns:
|
|||||||
//
|
//
|
||||||
// Enter critical section
|
// Enter critical section
|
||||||
//
|
//
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_NOTIFY);
|
OldTpl = gBS->RaiseTPL (TPL_NOTIFY);
|
||||||
|
|
||||||
Status = UgaPrivateCheckQ (Private);
|
Status = UgaPrivateCheckQ (Private);
|
||||||
if (!EFI_ERROR (Status)) {
|
if (!EFI_ERROR (Status)) {
|
||||||
@ -321,7 +321,7 @@ Returns:
|
|||||||
//
|
//
|
||||||
// Enter critical section
|
// Enter critical section
|
||||||
//
|
//
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_NOTIFY);
|
OldTpl = gBS->RaiseTPL (TPL_NOTIFY);
|
||||||
|
|
||||||
Status = UgaPrivateCheckQ (Private);
|
Status = UgaPrivateCheckQ (Private);
|
||||||
if (!EFI_ERROR (Status)) {
|
if (!EFI_ERROR (Status)) {
|
||||||
@ -376,8 +376,8 @@ Returns:
|
|||||||
Private->SimpleTextIn.ReadKeyStroke = WinNtUgaSimpleTextInReadKeyStroke;
|
Private->SimpleTextIn.ReadKeyStroke = WinNtUgaSimpleTextInReadKeyStroke;
|
||||||
|
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
EFI_EVENT_NOTIFY_WAIT,
|
EVT_NOTIFY_WAIT,
|
||||||
EFI_TPL_NOTIFY,
|
TPL_NOTIFY,
|
||||||
WinNtUgaSimpleTextInWaitForKey,
|
WinNtUgaSimpleTextInWaitForKey,
|
||||||
Private,
|
Private,
|
||||||
&Private->SimpleTextIn.WaitForKey
|
&Private->SimpleTextIn.WaitForKey
|
||||||
|
@ -362,7 +362,7 @@ WinNtUgaBlt (
|
|||||||
// We would not want a timer based event (Cursor, ...) to come in while we are
|
// We would not want a timer based event (Cursor, ...) to come in while we are
|
||||||
// doing this operation.
|
// doing this operation.
|
||||||
//
|
//
|
||||||
OriginalTPL = gBS->RaiseTPL (EFI_TPL_NOTIFY);
|
OriginalTPL = gBS->RaiseTPL (TPL_NOTIFY);
|
||||||
|
|
||||||
for (SrcY = SourceY, DstY = DestinationY; DstY < (Height + DestinationY); SrcY++, DstY++) {
|
for (SrcY = SourceY, DstY = DestinationY; DstY < (Height + DestinationY); SrcY++, DstY++) {
|
||||||
Blt = (EFI_UGA_PIXEL *) ((UINT8 *) BltBuffer + (DstY * Delta) + DestinationX * sizeof (EFI_UGA_PIXEL));
|
Blt = (EFI_UGA_PIXEL *) ((UINT8 *) BltBuffer + (DstY * Delta) + DestinationX * sizeof (EFI_UGA_PIXEL));
|
||||||
@ -386,7 +386,7 @@ WinNtUgaBlt (
|
|||||||
// We would not want a timer based event (Cursor, ...) to come in while we are
|
// We would not want a timer based event (Cursor, ...) to come in while we are
|
||||||
// doing this operation.
|
// doing this operation.
|
||||||
//
|
//
|
||||||
OriginalTPL = gBS->RaiseTPL (EFI_TPL_NOTIFY);
|
OriginalTPL = gBS->RaiseTPL (TPL_NOTIFY);
|
||||||
|
|
||||||
if (BltOperation == EfiUgaVideoFill) {
|
if (BltOperation == EfiUgaVideoFill) {
|
||||||
FillPixel = BltBuffer;
|
FillPixel = BltBuffer;
|
||||||
@ -851,8 +851,8 @@ Returns:
|
|||||||
// Register to be notified on exit boot services so we can destroy the window.
|
// Register to be notified on exit boot services so we can destroy the window.
|
||||||
//
|
//
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
EFI_EVENT_SIGNAL_EXIT_BOOT_SERVICES,
|
EVT_SIGNAL_EXIT_BOOT_SERVICES,
|
||||||
EFI_TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
KillNtUgaThread,
|
KillNtUgaThread,
|
||||||
Private,
|
Private,
|
||||||
&mUgaScreenExitBootServicesEvent
|
&mUgaScreenExitBootServicesEvent
|
||||||
|
@ -167,7 +167,7 @@ Returns:
|
|||||||
//
|
//
|
||||||
if (Delta < 1000) {
|
if (Delta < 1000) {
|
||||||
|
|
||||||
OriginalTPL = gBS->RaiseTPL (EFI_TPL_HIGH_LEVEL);
|
OriginalTPL = gBS->RaiseTPL (TPL_HIGH_LEVEL);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Inform the firmware of an "timer interrupt". The time
|
// Inform the firmware of an "timer interrupt". The time
|
||||||
|
@ -454,8 +454,8 @@ Returns:
|
|||||||
// Install notify function to store processor data to HII database and data hub.
|
// Install notify function to store processor data to HII database and data hub.
|
||||||
//
|
//
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
EFI_EVENT_NOTIFY_SIGNAL,
|
EVT_NOTIFY_SIGNAL,
|
||||||
EFI_TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
WinNtIoProtocolNotifyFunction,
|
WinNtIoProtocolNotifyFunction,
|
||||||
ImageHandle,
|
ImageHandle,
|
||||||
&Event
|
&Event
|
||||||
|
@ -1360,7 +1360,7 @@ Returns:
|
|||||||
|
|
||||||
CopyMem ((UINTN *) &(FwhInstance->VolumeHeader), (UINTN *) FwVolHeader, FwVolHeader->HeaderLength);
|
CopyMem ((UINTN *) &(FwhInstance->VolumeHeader), (UINTN *) FwVolHeader, FwVolHeader->HeaderLength);
|
||||||
FwVolHeader = &(FwhInstance->VolumeHeader);
|
FwVolHeader = &(FwhInstance->VolumeHeader);
|
||||||
EfiInitializeLock (&(FwhInstance->FvbDevLock), EFI_TPL_HIGH_LEVEL);
|
EfiInitializeLock (&(FwhInstance->FvbDevLock), TPL_HIGH_LEVEL);
|
||||||
|
|
||||||
NumOfBlocks = 0;
|
NumOfBlocks = 0;
|
||||||
|
|
||||||
|
@ -321,8 +321,8 @@ Returns:
|
|||||||
// Install notify function to fetch memory data through UnixIo protocol and store to data hub.
|
// Install notify function to fetch memory data through UnixIo protocol and store to data hub.
|
||||||
//
|
//
|
||||||
EfiStatus = gBS->CreateEvent (
|
EfiStatus = gBS->CreateEvent (
|
||||||
EFI_EVENT_NOTIFY_SIGNAL,
|
EVT_NOTIFY_SIGNAL,
|
||||||
EFI_TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
UnixIoProtocolNotifyFunction,
|
UnixIoProtocolNotifyFunction,
|
||||||
ImageHandle,
|
ImageHandle,
|
||||||
&Event
|
&Event
|
||||||
|
@ -679,7 +679,7 @@ Returns:
|
|||||||
);
|
);
|
||||||
ASSERT_EFI_ERROR (Status);
|
ASSERT_EFI_ERROR (Status);
|
||||||
|
|
||||||
EfiInitializeLock (&Private->Lock, EFI_TPL_NOTIFY);
|
EfiInitializeLock (&Private->Lock, TPL_NOTIFY);
|
||||||
|
|
||||||
Private->UnixThunk = UnixIo->UnixThunk;
|
Private->UnixThunk = UnixIo->UnixThunk;
|
||||||
|
|
||||||
@ -1066,7 +1066,7 @@ UnixBlockIoReadBlocks (
|
|||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
EFI_TPL OldTpl;
|
EFI_TPL OldTpl;
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);
|
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
|
||||||
|
|
||||||
Private = UNIX_BLOCK_IO_PRIVATE_DATA_FROM_THIS (This);
|
Private = UNIX_BLOCK_IO_PRIVATE_DATA_FROM_THIS (This);
|
||||||
|
|
||||||
@ -1133,7 +1133,7 @@ UnixBlockIoWriteBlocks (
|
|||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
EFI_TPL OldTpl;
|
EFI_TPL OldTpl;
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);
|
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
|
||||||
|
|
||||||
Private = UNIX_BLOCK_IO_PRIVATE_DATA_FROM_THIS (This);
|
Private = UNIX_BLOCK_IO_PRIVATE_DATA_FROM_THIS (This);
|
||||||
|
|
||||||
@ -1211,7 +1211,7 @@ UnixBlockIoResetBlock (
|
|||||||
UNIX_BLOCK_IO_PRIVATE *Private;
|
UNIX_BLOCK_IO_PRIVATE *Private;
|
||||||
EFI_TPL OldTpl;
|
EFI_TPL OldTpl;
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);
|
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
|
||||||
|
|
||||||
Private = UNIX_BLOCK_IO_PRIVATE_DATA_FROM_THIS (This);
|
Private = UNIX_BLOCK_IO_PRIVATE_DATA_FROM_THIS (This);
|
||||||
|
|
||||||
|
@ -234,8 +234,8 @@ Returns:
|
|||||||
Private->SimpleTextIn.ReadKeyStroke = UnixSimpleTextInReadKeyStroke;
|
Private->SimpleTextIn.ReadKeyStroke = UnixSimpleTextInReadKeyStroke;
|
||||||
|
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
EFI_EVENT_NOTIFY_WAIT,
|
EVT_NOTIFY_WAIT,
|
||||||
EFI_TPL_NOTIFY,
|
TPL_NOTIFY,
|
||||||
UnixSimpleTextInWaitForKey,
|
UnixSimpleTextInWaitForKey,
|
||||||
Private,
|
Private,
|
||||||
&Private->SimpleTextIn.WaitForKey
|
&Private->SimpleTextIn.WaitForKey
|
||||||
|
@ -770,7 +770,7 @@ Returns:
|
|||||||
EFI_TPL Tpl;
|
EFI_TPL Tpl;
|
||||||
UINTN UnixStatus;
|
UINTN UnixStatus;
|
||||||
|
|
||||||
Tpl = gBS->RaiseTPL (EFI_TPL_NOTIFY);
|
Tpl = gBS->RaiseTPL (TPL_NOTIFY);
|
||||||
|
|
||||||
Private = UNIX_SERIAL_IO_PRIVATE_DATA_FROM_THIS (This);
|
Private = UNIX_SERIAL_IO_PRIVATE_DATA_FROM_THIS (This);
|
||||||
|
|
||||||
@ -844,7 +844,7 @@ Returns:
|
|||||||
EFI_TPL Tpl;
|
EFI_TPL Tpl;
|
||||||
EFI_DEVICE_PATH_PROTOCOL *NewDevicePath;
|
EFI_DEVICE_PATH_PROTOCOL *NewDevicePath;
|
||||||
|
|
||||||
Tpl = gBS->RaiseTPL (EFI_TPL_NOTIFY);
|
Tpl = gBS->RaiseTPL (TPL_NOTIFY);
|
||||||
Private = UNIX_SERIAL_IO_PRIVATE_DATA_FROM_THIS (This);
|
Private = UNIX_SERIAL_IO_PRIVATE_DATA_FROM_THIS (This);
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -1037,7 +1037,7 @@ Returns:
|
|||||||
struct termios Options;
|
struct termios Options;
|
||||||
EFI_TPL Tpl;
|
EFI_TPL Tpl;
|
||||||
|
|
||||||
Tpl = gBS->RaiseTPL (EFI_TPL_NOTIFY);
|
Tpl = gBS->RaiseTPL (TPL_NOTIFY);
|
||||||
|
|
||||||
Private = UNIX_SERIAL_IO_PRIVATE_DATA_FROM_THIS (This);
|
Private = UNIX_SERIAL_IO_PRIVATE_DATA_FROM_THIS (This);
|
||||||
|
|
||||||
@ -1119,7 +1119,7 @@ Returns:
|
|||||||
EFI_TPL Tpl;
|
EFI_TPL Tpl;
|
||||||
UINTN Bytes;
|
UINTN Bytes;
|
||||||
|
|
||||||
Tpl = gBS->RaiseTPL (EFI_TPL_NOTIFY);
|
Tpl = gBS->RaiseTPL (TPL_NOTIFY);
|
||||||
|
|
||||||
Private = UNIX_SERIAL_IO_PRIVATE_DATA_FROM_THIS (This);
|
Private = UNIX_SERIAL_IO_PRIVATE_DATA_FROM_THIS (This);
|
||||||
Result = Private->UnixThunk->IoCtl (Private->UnixHandle, TIOCMGET, &Status);
|
Result = Private->UnixThunk->IoCtl (Private->UnixHandle, TIOCMGET, &Status);
|
||||||
@ -1218,7 +1218,7 @@ Returns:
|
|||||||
UINT32 Control;
|
UINT32 Control;
|
||||||
EFI_TPL Tpl;
|
EFI_TPL Tpl;
|
||||||
|
|
||||||
Tpl = gBS->RaiseTPL (EFI_TPL_NOTIFY);
|
Tpl = gBS->RaiseTPL (TPL_NOTIFY);
|
||||||
|
|
||||||
Private = UNIX_SERIAL_IO_PRIVATE_DATA_FROM_THIS (This);
|
Private = UNIX_SERIAL_IO_PRIVATE_DATA_FROM_THIS (This);
|
||||||
|
|
||||||
@ -1309,7 +1309,7 @@ Returns:
|
|||||||
UINT32 Control;
|
UINT32 Control;
|
||||||
EFI_TPL Tpl;
|
EFI_TPL Tpl;
|
||||||
|
|
||||||
Tpl = gBS->RaiseTPL (EFI_TPL_NOTIFY);
|
Tpl = gBS->RaiseTPL (TPL_NOTIFY);
|
||||||
|
|
||||||
Private = UNIX_SERIAL_IO_PRIVATE_DATA_FROM_THIS (This);
|
Private = UNIX_SERIAL_IO_PRIVATE_DATA_FROM_THIS (This);
|
||||||
|
|
||||||
|
@ -500,7 +500,7 @@ Returns:
|
|||||||
if (This == NULL || Root == NULL) {
|
if (This == NULL || Root == NULL) {
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);
|
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
|
||||||
|
|
||||||
Private = UNIX_SIMPLE_FILE_SYSTEM_PRIVATE_DATA_FROM_THIS (This);
|
Private = UNIX_SIMPLE_FILE_SYSTEM_PRIVATE_DATA_FROM_THIS (This);
|
||||||
|
|
||||||
@ -989,7 +989,7 @@ Returns:
|
|||||||
|
|
||||||
PrivateFile = UNIX_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);
|
PrivateFile = UNIX_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);
|
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
|
||||||
|
|
||||||
if (PrivateFile->fd >= 0) {
|
if (PrivateFile->fd >= 0) {
|
||||||
PrivateFile->UnixThunk->Close (PrivateFile->fd);
|
PrivateFile->UnixThunk->Close (PrivateFile->fd);
|
||||||
@ -1044,7 +1044,7 @@ Returns:
|
|||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);
|
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
|
||||||
|
|
||||||
PrivateFile = UNIX_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);
|
PrivateFile = UNIX_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);
|
||||||
|
|
||||||
@ -1268,7 +1268,7 @@ Returns:
|
|||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);
|
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
|
||||||
|
|
||||||
PrivateFile = UNIX_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);
|
PrivateFile = UNIX_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);
|
||||||
|
|
||||||
@ -1401,7 +1401,7 @@ Returns:
|
|||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);
|
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
|
||||||
|
|
||||||
PrivateFile = UNIX_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);
|
PrivateFile = UNIX_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);
|
||||||
|
|
||||||
@ -1473,7 +1473,7 @@ Returns:
|
|||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);
|
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
|
||||||
|
|
||||||
PrivateFile = UNIX_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);
|
PrivateFile = UNIX_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);
|
||||||
|
|
||||||
@ -1539,7 +1539,7 @@ Returns:
|
|||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);
|
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
|
||||||
|
|
||||||
PrivateFile = UNIX_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);
|
PrivateFile = UNIX_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);
|
||||||
|
|
||||||
@ -1609,7 +1609,7 @@ Returns:
|
|||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);
|
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
|
||||||
|
|
||||||
PrivateFile = UNIX_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);
|
PrivateFile = UNIX_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);
|
||||||
PrivateRoot = UNIX_SIMPLE_FILE_SYSTEM_PRIVATE_DATA_FROM_THIS (PrivateFile->SimpleFileSystem);
|
PrivateRoot = UNIX_SIMPLE_FILE_SYSTEM_PRIVATE_DATA_FROM_THIS (PrivateFile->SimpleFileSystem);
|
||||||
@ -1741,7 +1741,7 @@ Returns:
|
|||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);
|
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Initialise locals.
|
// Initialise locals.
|
||||||
@ -2152,7 +2152,7 @@ Returns:
|
|||||||
}
|
}
|
||||||
|
|
||||||
Status = EFI_SUCCESS;
|
Status = EFI_SUCCESS;
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_CALLBACK);
|
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
|
||||||
|
|
||||||
PrivateFile = UNIX_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);
|
PrivateFile = UNIX_EFI_FILE_PRIVATE_DATA_FROM_THIS (This);
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ Returns:
|
|||||||
//
|
//
|
||||||
// Enter critical section
|
// Enter critical section
|
||||||
//
|
//
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_NOTIFY);
|
OldTpl = gBS->RaiseTPL (TPL_NOTIFY);
|
||||||
|
|
||||||
//
|
//
|
||||||
// A reset is draining the Queue
|
// A reset is draining the Queue
|
||||||
@ -119,7 +119,7 @@ Returns:
|
|||||||
//
|
//
|
||||||
// Enter critical section
|
// Enter critical section
|
||||||
//
|
//
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_NOTIFY);
|
OldTpl = gBS->RaiseTPL (TPL_NOTIFY);
|
||||||
|
|
||||||
Status = Private->UgaIo->UgaGetKey(Private->UgaIo, Key);
|
Status = Private->UgaIo->UgaGetKey(Private->UgaIo, Key);
|
||||||
//
|
//
|
||||||
@ -166,7 +166,7 @@ Returns:
|
|||||||
//
|
//
|
||||||
// Enter critical section
|
// Enter critical section
|
||||||
//
|
//
|
||||||
OldTpl = gBS->RaiseTPL (EFI_TPL_NOTIFY);
|
OldTpl = gBS->RaiseTPL (TPL_NOTIFY);
|
||||||
|
|
||||||
Status = Private->UgaIo->UgaCheckKey(Private->UgaIo);
|
Status = Private->UgaIo->UgaCheckKey(Private->UgaIo);
|
||||||
if (!EFI_ERROR (Status)) {
|
if (!EFI_ERROR (Status)) {
|
||||||
@ -210,8 +210,8 @@ Returns:
|
|||||||
Private->SimpleTextIn.ReadKeyStroke = UnixUgaSimpleTextInReadKeyStroke;
|
Private->SimpleTextIn.ReadKeyStroke = UnixUgaSimpleTextInReadKeyStroke;
|
||||||
|
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
EFI_EVENT_NOTIFY_WAIT,
|
EVT_NOTIFY_WAIT,
|
||||||
EFI_TPL_NOTIFY,
|
TPL_NOTIFY,
|
||||||
UnixUgaSimpleTextInWaitForKey,
|
UnixUgaSimpleTextInWaitForKey,
|
||||||
Private,
|
Private,
|
||||||
&Private->SimpleTextIn.WaitForKey
|
&Private->SimpleTextIn.WaitForKey
|
||||||
|
@ -256,7 +256,7 @@ UnixUgaBlt (
|
|||||||
// We would not want a timer based event (Cursor, ...) to come in while we are
|
// We would not want a timer based event (Cursor, ...) to come in while we are
|
||||||
// doing this operation.
|
// doing this operation.
|
||||||
//
|
//
|
||||||
OriginalTPL = gBS->RaiseTPL (EFI_TPL_NOTIFY);
|
OriginalTPL = gBS->RaiseTPL (TPL_NOTIFY);
|
||||||
|
|
||||||
Status = Private->UgaIo->UgaBlt (Private->UgaIo,
|
Status = Private->UgaIo->UgaBlt (Private->UgaIo,
|
||||||
BltBuffer,
|
BltBuffer,
|
||||||
@ -348,8 +348,8 @@ Returns:
|
|||||||
// Register to be notified on exit boot services so we can destroy the window.
|
// Register to be notified on exit boot services so we can destroy the window.
|
||||||
//
|
//
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
EFI_EVENT_SIGNAL_EXIT_BOOT_SERVICES,
|
EVT_SIGNAL_EXIT_BOOT_SERVICES,
|
||||||
EFI_TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
KillNtUgaThread,
|
KillNtUgaThread,
|
||||||
Private,
|
Private,
|
||||||
&mUgaScreenExitBootServicesEvent
|
&mUgaScreenExitBootServicesEvent
|
||||||
|
@ -77,9 +77,9 @@ Returns:
|
|||||||
EFI_TIMER_NOTIFY CallbackFunction;
|
EFI_TIMER_NOTIFY CallbackFunction;
|
||||||
|
|
||||||
|
|
||||||
OriginalTPL = gBS->RaiseTPL (EFI_TPL_HIGH_LEVEL);
|
OriginalTPL = gBS->RaiseTPL (TPL_HIGH_LEVEL);
|
||||||
|
|
||||||
if (OriginalTPL < EFI_TPL_HIGH_LEVEL) {
|
if (OriginalTPL < TPL_HIGH_LEVEL) {
|
||||||
CallbackFunction = mTimerNotifyFunction;
|
CallbackFunction = mTimerNotifyFunction;
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -458,8 +458,8 @@ Returns:
|
|||||||
// Install notify function to store processor data to HII database and data hub.
|
// Install notify function to store processor data to HII database and data hub.
|
||||||
//
|
//
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
EFI_EVENT_NOTIFY_SIGNAL,
|
EVT_NOTIFY_SIGNAL,
|
||||||
EFI_TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
UnixIoProtocolNotifyFunction,
|
UnixIoProtocolNotifyFunction,
|
||||||
ImageHandle,
|
ImageHandle,
|
||||||
&Event
|
&Event
|
||||||
|
@ -1368,7 +1368,7 @@ Returns:
|
|||||||
|
|
||||||
CopyMem ((UINTN *) &(FwhInstance->VolumeHeader), (UINTN *) FwVolHeader, FwVolHeader->HeaderLength);
|
CopyMem ((UINTN *) &(FwhInstance->VolumeHeader), (UINTN *) FwVolHeader, FwVolHeader->HeaderLength);
|
||||||
FwVolHeader = &(FwhInstance->VolumeHeader);
|
FwVolHeader = &(FwhInstance->VolumeHeader);
|
||||||
EfiInitializeLock (&(FwhInstance->FvbDevLock), EFI_TPL_HIGH_LEVEL);
|
EfiInitializeLock (&(FwhInstance->FvbDevLock), TPL_HIGH_LEVEL);
|
||||||
|
|
||||||
NumOfBlocks = 0;
|
NumOfBlocks = 0;
|
||||||
|
|
||||||
|
@ -113,7 +113,7 @@ EfiCreateProtocolNotifyEvent(
|
|||||||
//
|
//
|
||||||
|
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
EFI_EVENT_NOTIFY_SIGNAL,
|
EVT_NOTIFY_SIGNAL,
|
||||||
NotifyTpl,
|
NotifyTpl,
|
||||||
NotifyFunction,
|
NotifyFunction,
|
||||||
NotifyContext,
|
NotifyContext,
|
||||||
@ -175,7 +175,7 @@ EfiNamedEventListen (
|
|||||||
// Create event
|
// Create event
|
||||||
//
|
//
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
EFI_EVENT_NOTIFY_SIGNAL,
|
EVT_NOTIFY_SIGNAL,
|
||||||
NotifyTpl,
|
NotifyTpl,
|
||||||
NotifyFunction,
|
NotifyFunction,
|
||||||
(VOID *) NotifyContext,
|
(VOID *) NotifyContext,
|
||||||
@ -267,7 +267,7 @@ EfiGetCurrentTpl (
|
|||||||
{
|
{
|
||||||
EFI_TPL Tpl;
|
EFI_TPL Tpl;
|
||||||
|
|
||||||
Tpl = gBS->RaiseTPL (EFI_TPL_HIGH_LEVEL);
|
Tpl = gBS->RaiseTPL (TPL_HIGH_LEVEL);
|
||||||
gBS->RestoreTPL (Tpl);
|
gBS->RestoreTPL (Tpl);
|
||||||
|
|
||||||
return Tpl;
|
return Tpl;
|
||||||
@ -294,10 +294,10 @@ EfiInitializeLock (
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
ASSERT (Lock != NULL);
|
ASSERT (Lock != NULL);
|
||||||
ASSERT (Priority <= EFI_TPL_HIGH_LEVEL);
|
ASSERT (Priority <= TPL_HIGH_LEVEL);
|
||||||
|
|
||||||
Lock->Tpl = Priority;
|
Lock->Tpl = Priority;
|
||||||
Lock->OwnerTpl = EFI_TPL_APPLICATION;
|
Lock->OwnerTpl = TPL_APPLICATION;
|
||||||
Lock->Lock = EfiLockReleased ;
|
Lock->Lock = EfiLockReleased ;
|
||||||
return Lock;
|
return Lock;
|
||||||
}
|
}
|
||||||
|
@ -60,7 +60,7 @@ EfiCreateEventLegacyBoot (
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
return EfiCreateEventLegacyBootEx (
|
return EfiCreateEventLegacyBootEx (
|
||||||
EFI_TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
InternalEmptyFuntion,
|
InternalEmptyFuntion,
|
||||||
NULL,
|
NULL,
|
||||||
LegacyBootEvent
|
LegacyBootEvent
|
||||||
@ -104,7 +104,7 @@ EfiCreateEventLegacyBootEx (
|
|||||||
// prior to UEFI 2.0 use Tiano extension to EFI
|
// prior to UEFI 2.0 use Tiano extension to EFI
|
||||||
//
|
//
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
EFI_EVENT_SIGNAL_LEGACY_BOOT | EFI_EVENT_NOTIFY_SIGNAL_ALL,
|
EFI_EVENT_SIGNAL_LEGACY_BOOT | EVT_NOTIFY_SIGNAL,
|
||||||
NotifyTpl,
|
NotifyTpl,
|
||||||
NotifyFunction,
|
NotifyFunction,
|
||||||
NotifyContext,
|
NotifyContext,
|
||||||
@ -115,7 +115,7 @@ EfiCreateEventLegacyBootEx (
|
|||||||
// For UEFI 2.0 and the future use an Event Group
|
// For UEFI 2.0 and the future use an Event Group
|
||||||
//
|
//
|
||||||
Status = gBS->CreateEventEx (
|
Status = gBS->CreateEventEx (
|
||||||
EVENT_NOTIFY_SIGNAL,
|
EVT_NOTIFY_SIGNAL,
|
||||||
NotifyTpl,
|
NotifyTpl,
|
||||||
NotifyFunction,
|
NotifyFunction,
|
||||||
NotifyContext,
|
NotifyContext,
|
||||||
@ -150,7 +150,7 @@ EfiCreateEventReadyToBoot (
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
return EfiCreateEventReadyToBootEx (
|
return EfiCreateEventReadyToBootEx (
|
||||||
EFI_TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
InternalEmptyFuntion,
|
InternalEmptyFuntion,
|
||||||
NULL,
|
NULL,
|
||||||
ReadyToBootEvent
|
ReadyToBootEvent
|
||||||
@ -205,7 +205,7 @@ EfiCreateEventReadyToBootEx (
|
|||||||
// For UEFI 2.0 and the future use an Event Group
|
// For UEFI 2.0 and the future use an Event Group
|
||||||
//
|
//
|
||||||
Status = gBS->CreateEventEx (
|
Status = gBS->CreateEventEx (
|
||||||
EVENT_NOTIFY_SIGNAL,
|
EVT_NOTIFY_SIGNAL,
|
||||||
NotifyTpl,
|
NotifyTpl,
|
||||||
NotifyFunction,
|
NotifyFunction,
|
||||||
NotifyContext,
|
NotifyContext,
|
||||||
|
@ -180,7 +180,7 @@ EfiInitializeLock (
|
|||||||
|
|
||||||
**/
|
**/
|
||||||
#define EFI_INITIALIZE_LOCK_VARIABLE(Priority) \
|
#define EFI_INITIALIZE_LOCK_VARIABLE(Priority) \
|
||||||
{Priority, EFI_TPL_APPLICATION, EfiLockReleased }
|
{Priority, TPL_APPLICATION, EfiLockReleased }
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -341,15 +341,22 @@ EFI_STATUS
|
|||||||
//
|
//
|
||||||
// EFI Event Types (name defined in spec)
|
// EFI Event Types (name defined in spec)
|
||||||
//
|
//
|
||||||
#define EVENT_TIMER 0x80000000
|
#define EVT_TIMER 0x80000000
|
||||||
#define EVENT_RUNTIME 0x40000000
|
#define EVT_RUNTIME 0x40000000
|
||||||
|
|
||||||
|
#define EVT_NOTIFY_WAIT 0x00000100
|
||||||
|
#define EVT_NOTIFY_SIGNAL 0x00000200
|
||||||
|
#define EVT_SIGNAL_EXIT_BOOT_SERVICES 0x00000201
|
||||||
|
#define EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE 0x60000202
|
||||||
|
|
||||||
|
#define EVENT_TIMER EVT_TIMER
|
||||||
|
#define EVENT_RUNTIME EVT_RUNTIME
|
||||||
#define EVENT_RUNTIME_CONTEXT 0x20000000
|
#define EVENT_RUNTIME_CONTEXT 0x20000000
|
||||||
|
|
||||||
#define EVENT_NOTIFY_WAIT 0x00000100
|
#define EVENT_NOTIFY_WAIT EVT_NOTIFY_WAIT
|
||||||
#define EVENT_NOTIFY_SIGNAL 0x00000200
|
#define EVENT_NOTIFY_SIGNAL EVT_NOTIFY_SIGNAL
|
||||||
|
#define EVENT_SIGNAL_EXIT_BOOT_SERVICES EVT_SIGNAL_EXIT_BOOT_SERVICES
|
||||||
#define EVENT_SIGNAL_EXIT_BOOT_SERVICES 0x00000201
|
#define EVENT_SIGNAL_VIRTUAL_ADDRESS_CHANGE EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE
|
||||||
#define EVENT_SIGNAL_VIRTUAL_ADDRESS_CHANGE 0x60000202
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Prior to UEFI 2.0 Tiano extended these enums. This was replaced by
|
// Prior to UEFI 2.0 Tiano extended these enums. This was replaced by
|
||||||
|
@ -127,8 +127,8 @@ _ModuleEntryPoint (
|
|||||||
//
|
//
|
||||||
if (_gDriverExitBootServicesEvent[0] != NULL) {
|
if (_gDriverExitBootServicesEvent[0] != NULL) {
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
EFI_EVENT_SIGNAL_EXIT_BOOT_SERVICES,
|
EVT_SIGNAL_EXIT_BOOT_SERVICES,
|
||||||
EFI_TPL_NOTIFY,
|
TPL_NOTIFY,
|
||||||
_DriverExitBootServices,
|
_DriverExitBootServices,
|
||||||
NULL,
|
NULL,
|
||||||
&_mDriverExitBootServicesNotifyEvent
|
&_mDriverExitBootServicesNotifyEvent
|
||||||
|
@ -111,7 +111,7 @@ EfiCreateProtocolNotifyEvent(
|
|||||||
//
|
//
|
||||||
|
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
EFI_EVENT_NOTIFY_SIGNAL,
|
EVT_NOTIFY_SIGNAL,
|
||||||
NotifyTpl,
|
NotifyTpl,
|
||||||
NotifyFunction,
|
NotifyFunction,
|
||||||
NotifyContext,
|
NotifyContext,
|
||||||
@ -173,7 +173,7 @@ EfiNamedEventListen (
|
|||||||
// Create event
|
// Create event
|
||||||
//
|
//
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
EFI_EVENT_NOTIFY_SIGNAL,
|
EVT_NOTIFY_SIGNAL,
|
||||||
NotifyTpl,
|
NotifyTpl,
|
||||||
NotifyFunction,
|
NotifyFunction,
|
||||||
(VOID *) NotifyContext,
|
(VOID *) NotifyContext,
|
||||||
@ -265,7 +265,7 @@ EfiGetCurrentTpl (
|
|||||||
{
|
{
|
||||||
EFI_TPL Tpl;
|
EFI_TPL Tpl;
|
||||||
|
|
||||||
Tpl = gBS->RaiseTPL (EFI_TPL_HIGH_LEVEL);
|
Tpl = gBS->RaiseTPL (TPL_HIGH_LEVEL);
|
||||||
gBS->RestoreTPL (Tpl);
|
gBS->RestoreTPL (Tpl);
|
||||||
|
|
||||||
return Tpl;
|
return Tpl;
|
||||||
@ -292,10 +292,10 @@ EfiInitializeLock (
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
ASSERT (Lock != NULL);
|
ASSERT (Lock != NULL);
|
||||||
ASSERT (Priority <= EFI_TPL_HIGH_LEVEL);
|
ASSERT (Priority <= TPL_HIGH_LEVEL);
|
||||||
|
|
||||||
Lock->Tpl = Priority;
|
Lock->Tpl = Priority;
|
||||||
Lock->OwnerTpl = EFI_TPL_APPLICATION;
|
Lock->OwnerTpl = TPL_APPLICATION;
|
||||||
Lock->Lock = EfiLockReleased ;
|
Lock->Lock = EfiLockReleased ;
|
||||||
return Lock;
|
return Lock;
|
||||||
}
|
}
|
||||||
|
@ -59,7 +59,7 @@ EfiCreateEventLegacyBoot (
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
return EfiCreateEventLegacyBootEx (
|
return EfiCreateEventLegacyBootEx (
|
||||||
EFI_TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
InternalEmptyFuntion,
|
InternalEmptyFuntion,
|
||||||
NULL,
|
NULL,
|
||||||
LegacyBootEvent
|
LegacyBootEvent
|
||||||
@ -114,7 +114,7 @@ EfiCreateEventLegacyBootEx (
|
|||||||
// For UEFI 2.0 and the future use an Event Group
|
// For UEFI 2.0 and the future use an Event Group
|
||||||
//
|
//
|
||||||
Status = gBS->CreateEventEx (
|
Status = gBS->CreateEventEx (
|
||||||
EVENT_NOTIFY_SIGNAL,
|
EVT_NOTIFY_SIGNAL,
|
||||||
NotifyTpl,
|
NotifyTpl,
|
||||||
NotifyFunction,
|
NotifyFunction,
|
||||||
NotifyContext,
|
NotifyContext,
|
||||||
@ -149,7 +149,7 @@ EfiCreateEventReadyToBoot (
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
return EfiCreateEventReadyToBootEx (
|
return EfiCreateEventReadyToBootEx (
|
||||||
EFI_TPL_CALLBACK,
|
TPL_CALLBACK,
|
||||||
InternalEmptyFuntion,
|
InternalEmptyFuntion,
|
||||||
NULL,
|
NULL,
|
||||||
ReadyToBootEvent
|
ReadyToBootEvent
|
||||||
@ -204,7 +204,7 @@ EfiCreateEventReadyToBootEx (
|
|||||||
// For UEFI 2.0 and the future use an Event Group
|
// For UEFI 2.0 and the future use an Event Group
|
||||||
//
|
//
|
||||||
Status = gBS->CreateEventEx (
|
Status = gBS->CreateEventEx (
|
||||||
EVENT_NOTIFY_SIGNAL,
|
EVT_NOTIFY_SIGNAL,
|
||||||
NotifyTpl,
|
NotifyTpl,
|
||||||
NotifyFunction,
|
NotifyFunction,
|
||||||
NotifyContext,
|
NotifyContext,
|
||||||
|
Reference in New Issue
Block a user