return S3BootScriptSavePciCfg2ReadWrite (Width, Segment, Address, Data, DataMask);\r
}\r
/**\r
- Internal function to add smbus excute opcode to the table.\r
+ Internal function to add smbus execute opcode to the table.\r
\r
@param Marker The variable argument list to get the opcode\r
and associated attributes.\r
IN EFI_SYSTEM_TABLE *SystemTable\r
)\r
{\r
+ EFI_STATUS Status;\r
+ EFI_EVENT EndOfDxeEvent;\r
\r
if (!PcdGetBool (PcdAcpiS3Enable)) {\r
return EFI_UNSUPPORTED;\r
}\r
\r
+ Status = gBS->CreateEventEx (\r
+ EVT_NOTIFY_SIGNAL,\r
+ TPL_CALLBACK,\r
+ AcpiS3ContextSaveOnEndOfDxe,\r
+ NULL,\r
+ &gEfiEndOfDxeEventGroupGuid,\r
+ &EndOfDxeEvent\r
+ );\r
+ ASSERT_EFI_ERROR (Status);\r
+\r
return gBS->InstallProtocolInterface (\r
&mHandle,\r
&gEfiS3SaveStateProtocolGuid,\r