summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Core/Pei
diff options
context:
space:
mode:
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2008-09-23 09:11:12 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2008-09-23 09:11:12 +0000
commit28127cc7624638fafc6260107480adb9b451b5a4 (patch)
treec21eb73ba582ebd562106a928ecc9779af3ee1f6 /MdeModulePkg/Core/Pei
parent13c3803149943a2a54553eee6e121873dab05acd (diff)
downloadedk2-platforms-28127cc7624638fafc6260107480adb9b451b5a4.tar.xz
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
Diffstat (limited to 'MdeModulePkg/Core/Pei')
-rw-r--r--MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c b/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c
index 5d9226fc7e..49b3d36864 100644
--- a/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c
+++ b/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c
@@ -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