\r
If EntryPoint is NULL, then ASSERT().\r
If NewStack is NULL, then ASSERT().\r
+ For IPF CPUs, if NewStack is not aligned on a 16-byte boundary, then ASSERT().\r
\r
@param EntryPoint A pointer to function to call with the new stack.\r
@param Context1 A pointer to the context to pass into the EntryPoint\r
{\r
ASSERT (EntryPoint != NULL && NewStack != NULL);\r
\r
+#ifdef MDE_CPU_IPF\r
+ ASSERT (((UINTN)NewStack & 0xf) == 0);\r
+#endif\r
+\r
InternalSwitchStack (EntryPoint, Context1, Context2, NewStack);\r
}\r