EFI_PHYSICAL_ADDRESS mSmramCacheBase;\r
UINT64 mSmramCacheSize;\r
\r
+EFI_SMM_COMMUNICATE_HEADER mCommunicateHeader;\r
+\r
//\r
// Table of Protocol notification and GUIDed Event notifications that the SMM IPL requires\r
//\r
IN VOID *Context\r
)\r
{\r
- EFI_SMM_COMMUNICATE_HEADER CommunicateHeader;\r
UINTN Size;\r
\r
//\r
// Use Guid to initialize EFI_SMM_COMMUNICATE_HEADER structure \r
//\r
- CopyGuid (&CommunicateHeader.HeaderGuid, (EFI_GUID *)Context);\r
- CommunicateHeader.MessageLength = 1;\r
- CommunicateHeader.Data[0] = 0;\r
+ CopyGuid (&mCommunicateHeader.HeaderGuid, (EFI_GUID *)Context);\r
+ mCommunicateHeader.MessageLength = 1;\r
+ mCommunicateHeader.Data[0] = 0;\r
\r
//\r
// Generate the Software SMI and return the result\r
//\r
- Size = sizeof (CommunicateHeader);\r
- SmmCommunicationCommunicate (&mSmmCommunication, &CommunicateHeader, &Size);\r
+ Size = sizeof (mCommunicateHeader);\r
+ SmmCommunicationCommunicate (&mSmmCommunication, &mCommunicateHeader, &Size);\r
}\r
\r
/**\r
IN VOID *Context\r
)\r
{\r
- EFI_SMM_COMMUNICATE_HEADER CommunicateHeader;\r
UINTN Size;\r
EFI_STATUS Status;\r
\r
// Clear the buffer passed into the Software SMI. This buffer will return\r
// the status of the SMM Core Dispatcher.\r
//\r
- CopyGuid (&CommunicateHeader.HeaderGuid, (EFI_GUID *)Context);\r
- CommunicateHeader.MessageLength = 1;\r
- CommunicateHeader.Data[0] = 0;\r
+ CopyGuid (&mCommunicateHeader.HeaderGuid, (EFI_GUID *)Context);\r
+ mCommunicateHeader.MessageLength = 1;\r
+ mCommunicateHeader.Data[0] = 0;\r
\r
//\r
// Generate the Software SMI and return the result\r
//\r
- Size = sizeof (CommunicateHeader);\r
- SmmCommunicationCommunicate (&mSmmCommunication, &CommunicateHeader, &Size);\r
+ Size = sizeof (mCommunicateHeader);\r
+ SmmCommunicationCommunicate (&mSmmCommunication, &mCommunicateHeader, &Size);\r
\r
//\r
// Return if there is no request to restart the SMM Core Dispatcher\r
//\r
- if (CommunicateHeader.Data[0] != COMM_BUFFER_SMM_DISPATCH_RESTART) {\r
+ if (mCommunicateHeader.Data[0] != COMM_BUFFER_SMM_DISPATCH_RESTART) {\r
return;\r
}\r
\r