summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
c5fcec8)
Signal AcpiNotificationFunc() initially for the case that
DMAR table has been installed when creating event.
Cc: Jiewen Yao <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
- 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
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_STATUS Status;\r
EFI_EVENT ExitBootServicesEvent;\r
EFI_EVENT LegacyBootEvent;\r
+ EFI_EVENT EventAcpi10;\r
+ EFI_EVENT EventAcpi20;\r
\r
Status = gBS->CreateEventEx (\r
EVT_NOTIFY_SIGNAL,\r
\r
Status = gBS->CreateEventEx (\r
EVT_NOTIFY_SIGNAL,\r
AcpiNotificationFunc,\r
NULL,\r
&gEfiAcpi10TableGuid,\r
AcpiNotificationFunc,\r
NULL,\r
&gEfiAcpi10TableGuid,\r
);\r
ASSERT_EFI_ERROR (Status);\r
\r
);\r
ASSERT_EFI_ERROR (Status);\r
\r
AcpiNotificationFunc,\r
NULL,\r
&gEfiAcpi20TableGuid,\r
AcpiNotificationFunc,\r
NULL,\r
&gEfiAcpi20TableGuid,\r
);\r
ASSERT_EFI_ERROR (Status);\r
\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
Status = gBS->CreateEventEx (\r
EVT_NOTIFY_SIGNAL,\r
TPL_CALLBACK,\r
+ if (EFI_ERROR (Status)) {\r
+ return EFI_NOT_FOUND;\r
+ }\r
ASSERT (AcpiTable != NULL);\r
\r
mAcpiDmarTable = FindAcpiPtr (\r
ASSERT (AcpiTable != NULL);\r
\r
mAcpiDmarTable = FindAcpiPtr (\r