when SMM Communication Protocol.Communicate() is called from within SMM, SMRAM is accessible so it is not necessary to check the SMRAM open/lock state via SMM ACCESS Protocol.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11142 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
rsun3 2010-12-09 08:02:34 +00:00
parent 969ebd263b
commit 96756716c0
1 changed files with 2 additions and 2 deletions

View File

@ -454,9 +454,9 @@ SmmCommunicationCommunicate (
}
//
// Don't allow call SmiManage() directly when SMRAM is closed or locked.
// If we are not in SMM, don't allow call SmiManage() directly when SMRAM is closed or locked.
//
if (!mSmmAccess->OpenState || mSmmAccess->LockState) {
if ((!gSmmCorePrivate->InSmm) && (!mSmmAccess->OpenState || mSmmAccess->LockState)) {
return EFI_INVALID_PARAMETER;
}