From: Jiewen Yao Date: Thu, 26 Oct 2017 01:43:53 +0000 (+0800) Subject: IntelSiliconPkg/VTdDxe: Change EBS Event TPL to CALLBACK. X-Git-Tag: edk2-stable201903~3161 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=01df510319f3de8eb358e400dae786cddc160180;ds=sidebyside IntelSiliconPkg/VTdDxe: Change EBS Event TPL to CALLBACK. Change ExitBootServices TPL to CALLBACK, so that a device can disable BME before IOMMU grants access right. Cc: Star Zeng Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jiewen Yao Reviewed-by: Star Zeng --- diff --git a/IntelSiliconPkg/Feature/VTd/IntelVTdDxe/DmaProtection.c b/IntelSiliconPkg/Feature/VTd/IntelVTdDxe/DmaProtection.c index f5de01f380..4a4d82e7f1 100644 --- a/IntelSiliconPkg/Feature/VTd/IntelVTdDxe/DmaProtection.c +++ b/IntelSiliconPkg/Feature/VTd/IntelVTdDxe/DmaProtection.c @@ -483,7 +483,7 @@ InitializeDmaProtection ( Status = gBS->CreateEventEx ( EVT_NOTIFY_SIGNAL, - TPL_NOTIFY, + TPL_CALLBACK, OnExitBootServices, NULL, &gEfiEventExitBootServicesGuid, @@ -492,7 +492,7 @@ InitializeDmaProtection ( ASSERT_EFI_ERROR (Status); Status = EfiCreateEventLegacyBootEx ( - TPL_NOTIFY, + TPL_CALLBACK, OnLegacyBoot, NULL, &LegacyBootEvent