X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=IntelSiliconPkg%2FFeature%2FVTd%2FIntelVTdDxe%2FDmaProtection.c;h=648f64c20b7751690d8cda38cc25bf93c1b57c90;hp=37b3b19bce90df2b8b4e687666a59ad79e4e463d;hb=dcd39e09ff3dbec468152a32b343e68e6c87f4b6;hpb=c5fcec8c3fe2fa82065aace4d20c6bc30a0f5783;ds=sidebyside diff --git a/IntelSiliconPkg/Feature/VTd/IntelVTdDxe/DmaProtection.c b/IntelSiliconPkg/Feature/VTd/IntelVTdDxe/DmaProtection.c index 37b3b19bce..648f64c20b 100644 --- a/IntelSiliconPkg/Feature/VTd/IntelVTdDxe/DmaProtection.c +++ b/IntelSiliconPkg/Feature/VTd/IntelVTdDxe/DmaProtection.c @@ -1,6 +1,6 @@ /** @file - Copyright (c) 2017, Intel Corporation. All rights reserved.
+ Copyright (c) 2017 - 2018, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -473,7 +473,8 @@ InitializeDmaProtection ( EFI_STATUS Status; EFI_EVENT ExitBootServicesEvent; EFI_EVENT LegacyBootEvent; - EFI_EVENT Event; + EFI_EVENT EventAcpi10; + EFI_EVENT EventAcpi20; Status = gBS->CreateEventEx ( EVT_NOTIFY_SIGNAL, @@ -481,7 +482,7 @@ InitializeDmaProtection ( AcpiNotificationFunc, NULL, &gEfiAcpi10TableGuid, - &Event + &EventAcpi10 ); ASSERT_EFI_ERROR (Status); @@ -491,10 +492,17 @@ InitializeDmaProtection ( AcpiNotificationFunc, NULL, &gEfiAcpi20TableGuid, - &Event + &EventAcpi20 ); ASSERT_EFI_ERROR (Status); + // + // Signal the events initially for the case + // that DMAR table has been installed. + // + gBS->SignalEvent (EventAcpi20); + gBS->SignalEvent (EventAcpi10); + Status = gBS->CreateEventEx ( EVT_NOTIFY_SIGNAL, TPL_CALLBACK,