本文整理汇总了C++中EFI_BOOT_SERVICES::RaiseTPL方法的典型用法代码示例。如果您正苦于以下问题:C++ EFI_BOOT_SERVICES::RaiseTPL方法的具体用法?C++ EFI_BOOT_SERVICES::RaiseTPL怎么用?C++ EFI_BOOT_SERVICES::RaiseTPL使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EFI_BOOT_SERVICES
的用法示例。
在下文中一共展示了EFI_BOOT_SERVICES::RaiseTPL方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
EFI_TPL EFIAPI
OvrRaiseTPL(IN EFI_TPL NewTpl)
{
EFI_TPL Status;
Status = gOrgBS.RaiseTPL(NewTpl);
// do not print - it's called by UEFI events and timers (from timer interrupts) many times
//PRINT("->RaiseTPL(NewTpl=%d) = %d\n", NewTpl, Status);
return Status;
}
示例2:
/**
* Block callback
*
* @v unique_id NII NIC
* @v acquire Acquire lock
*/
static EFIAPI VOID nii_block ( UINT64 unique_id, UINT32 acquire ) {
struct nii_nic *nii = ( ( void * ) ( intptr_t ) unique_id );
EFI_BOOT_SERVICES *bs = efi_systab->BootServices;
/* This functionality (which is copied verbatim from the
* SnpDxe implementation of this function) appears to be
* totally brain-dead, since it produces no actual blocking
* behaviour.
*/
if ( acquire ) {
nii->saved_tpl = bs->RaiseTPL ( TPL_NOTIFY );
} else {
bs->RestoreTPL ( nii->saved_tpl );
}
}