);\r
\r
//\r
- // Make sure SMM CPU I/O 2 Procol has been installed into the handle database\r
+ // Make sure SMM CPU I/O 2 Protocol has been installed into the handle database\r
//\r
Status = SmmLocateProtocol (&gEfiSmmCpuIo2ProtocolGuid, NULL, &Interface);\r
\r
ASSERT_EFI_ERROR (Status);\r
\r
//\r
- // Uninstall the protocol here because the comsumer just hook the\r
+ // Uninstall the protocol here because the consumer just hook the\r
// installation event.\r
//\r
Status = SmmUninstallProtocolInterface (\r
SmmEntryPointMemoryManagementHook ();\r
\r
//\r
- // If a legacy boot has occured, then make sure gSmmCorePrivate is not accessed\r
+ // If a legacy boot has occurred, then make sure gSmmCorePrivate is not accessed\r
//\r
InLegacyBoot = mInLegacyBoot;\r
if (!InLegacyBoot) {\r
PlatformHookAfterSmmDispatch ();\r
\r
//\r
- // If a legacy boot has occured, then make sure gSmmCorePrivate is not accessed\r
+ // If a legacy boot has occurred, then make sure gSmmCorePrivate is not accessed\r
//\r
if (!InLegacyBoot) {\r
//\r
//\r
// No need to initialize memory service.\r
// It is done in constructor of PiSmmCoreMemoryAllocationLib(),\r
- // so that the library linked with PiSmmCore can use AllocatePool() in constuctor.\r
+ // so that the library linked with PiSmmCore can use AllocatePool() in constructor.\r
//\r
\r
SmramProfileInit ();\r