//\r
// Check to see if the Feature Control MSR is supported on this CPU\r
//\r
- Index = gSmst->CurrentlyExecutingCpu;\r
+ Index = gSmmCpuPrivate->SmmCoreEntryContext.CurrentlyExecutingCpu;\r
if (!SmmCpuFeaturesIsSmmRegisterSupported (Index, SmmRegFeatureControl)) {\r
mSmmCodeAccessCheckEnable = FALSE;\r
return;\r
// Enable SMM Code Access Check feature for the APs.\r
//\r
for (Index = 0; Index < gSmst->NumberOfCpus; Index++) {\r
- if (Index != gSmst->CurrentlyExecutingCpu) {\r
+ if (Index != gSmmCpuPrivate->SmmCoreEntryContext.CurrentlyExecutingCpu) {\r
\r
//\r
// Acquire Config SMM Code Access Check spin lock. The AP will release the\r