mirror of https://github.com/acidanthera/audk.git
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:
parent
13c3803149
commit
28127cc762
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue