Update PiSmmCore:

1. Update PiSmmIpl.c DoCommunicate() to prevent exception in case call SmiManage directly if SMRAM is closed or locked. That case causes exception.
2. Update PiSmmCore.c SmmEntryPoint(). It is not required to save/restore InSmm. Because SMM is non-reentrant.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10131 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
hhuan13
2010-03-01 04:29:21 +00:00
parent 26a76fbcb2
commit 3c5963cf29
2 changed files with 10 additions and 5 deletions

View File

@@ -397,6 +397,13 @@ SmmCommunicationCommunicate (
return EFI_INVALID_PARAMETER;
}
//
// Don't allow call SmiManage() directly when SMRAM is closed or locked.
//
if (!mSmmAccess->OpenState || mSmmAccess->LockState) {
return EFI_INVALID_PARAMETER;
}
//
// Save current InSmm state and set InSmm state to TRUE
//