diff options
Diffstat (limited to 'MdePkg/Library/BaseLib/SwitchStack.c')
-rw-r--r-- | MdePkg/Library/BaseLib/SwitchStack.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/MdePkg/Library/BaseLib/SwitchStack.c b/MdePkg/Library/BaseLib/SwitchStack.c index fec3cfaa60..353efa8f6e 100644 --- a/MdePkg/Library/BaseLib/SwitchStack.c +++ b/MdePkg/Library/BaseLib/SwitchStack.c @@ -47,5 +47,9 @@ SwitchStack ( {
ASSERT (EntryPoint != NULL && NewStack != NULL);
+#ifdef MDE_CPU_IPF
+ ASSERT (((UINTN)NewStack & 0xf) == 0);
+#endif
+
InternalSwitchStack (EntryPoint, Context1, Context2, NewStack);
}
|