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
|
// 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.
|
// the size of old stack at bottom of permenent memory.
|
||||||
//
|
//
|
||||||
StackGap = 0;
|
ASSERT (Private->StackSize >= OldPeiStackSize);
|
||||||
if (Private->StackSize > OldPeiStackSize) {
|
StackGap = Private->StackSize - OldPeiStackSize;
|
||||||
StackGap = Private->StackSize - OldPeiStackSize;
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Update HandOffHob for new installed permenent memory
|
// Update HandOffHob for new installed permenent memory
|
||||||
|
|
Loading…
Reference in New Issue