diff options
Diffstat (limited to 'MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c')
-rw-r--r-- | MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c | 6 |
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
|