Add assert check to make sure new stack size larger than old stack size.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5952 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lgao4 2008-09-23 09:11:12 +00:00
parent 13c3803149
commit 28127cc762
1 changed files with 2 additions and 4 deletions

View File

@ -477,10 +477,8 @@ PeiDispatcher (
// But if new stack is smaller than the size of old stack, we also reserve
// the size of old stack at bottom of permenent memory.
//
StackGap = 0;
if (Private->StackSize > OldPeiStackSize) {
StackGap = Private->StackSize - OldPeiStackSize;
}
ASSERT (Private->StackSize >= OldPeiStackSize);
StackGap = Private->StackSize - OldPeiStackSize;
//
// Update HandOffHob for new installed permenent memory