/** @file\r
SMM Core Main Entry Point\r
\r
- Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials are licensed and made available \r
under the terms and conditions of the BSD License which accompanies this \r
distribution. The full text of the license may be found at \r
{ NULL, NULL, NULL, FALSE }\r
};\r
\r
+UINTN mFullSmramRangeCount;\r
+EFI_SMRAM_DESCRIPTOR *mFullSmramRanges;\r
+\r
/**\r
Place holder function until all the SMM System Table Service are available.\r
\r
gST = NULL;\r
gBS = NULL;\r
\r
+ SmramProfileReadyToLock ();\r
+\r
return Status;\r
}\r
\r
//\r
SmmInitializeMemoryServices (gSmmCorePrivate->SmramRangeCount, gSmmCorePrivate->SmramRanges);\r
\r
+ SmramProfileInit ();\r
+\r
+ //\r
+ // Copy FullSmramRanges to SMRAM\r
+ //\r
+ mFullSmramRangeCount = gSmmCorePrivate->FullSmramRangeCount;\r
+ mFullSmramRanges = AllocatePool (mFullSmramRangeCount * sizeof (EFI_SMRAM_DESCRIPTOR));\r
+ ASSERT (mFullSmramRanges != NULL);\r
+ CopyMem (mFullSmramRanges, gSmmCorePrivate->FullSmramRanges, mFullSmramRangeCount * sizeof (EFI_SMRAM_DESCRIPTOR));\r
+\r
//\r
// Register all SMI Handlers required by the SMM Core\r
//\r
);\r
ASSERT_EFI_ERROR (Status);\r
}\r
- \r
+\r
+ RegisterSmramProfileHandler ();\r
+\r
return EFI_SUCCESS;\r
}\r