/** @file\r
\r
- Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2017 - 2018, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
EFI_STATUS Status;\r
EFI_EVENT ExitBootServicesEvent;\r
EFI_EVENT LegacyBootEvent;\r
- EFI_EVENT Event;\r
+ EFI_EVENT EventAcpi10;\r
+ EFI_EVENT EventAcpi20;\r
\r
Status = gBS->CreateEventEx (\r
EVT_NOTIFY_SIGNAL,\r
- TPL_CALLBACK,\r
+ VTD_TPL_LEVEL,\r
AcpiNotificationFunc,\r
NULL,\r
&gEfiAcpi10TableGuid,\r
- &Event\r
+ &EventAcpi10\r
);\r
ASSERT_EFI_ERROR (Status);\r
\r
Status = gBS->CreateEventEx (\r
EVT_NOTIFY_SIGNAL,\r
- TPL_CALLBACK,\r
+ VTD_TPL_LEVEL,\r
AcpiNotificationFunc,\r
NULL,\r
&gEfiAcpi20TableGuid,\r
- &Event\r
+ &EventAcpi20\r
);\r
ASSERT_EFI_ERROR (Status);\r
\r
+ //\r
+ // Signal the events initially for the case\r
+ // that DMAR table has been installed.\r
+ //\r
+ gBS->SignalEvent (EventAcpi20);\r
+ gBS->SignalEvent (EventAcpi10);\r
+\r
Status = gBS->CreateEventEx (\r
EVT_NOTIFY_SIGNAL,\r
TPL_CALLBACK,\r