\r
**/\r
\r
+#include "BaseLibInternals.h"\r
+\r
/**\r
Worker function that checks ASSERT condition for JumpBuffer\r
\r
Checks ASSERT condition for JumpBuffer.\r
\r
If JumpBuffer is NULL, then ASSERT().\r
- For IPF CPUs, if JumpBuffer is not aligned on a 16-byte boundary, then ASSERT().\r
+ If JumpBuffer is not aligned on a BASE_LIBRARY_JUMP_BUFFER_ALIGNMENT\r
+ boundary, then ASSERT().\r
\r
@param JumpBuffer A pointer to CPU context buffer.\r
\r
**/\r
VOID\r
+EFIAPI\r
InternalAssertJumpBuffer (\r
IN BASE_LIBRARY_JUMP_BUFFER *JumpBuffer\r
)\r
{\r
ASSERT (JumpBuffer != NULL);\r
\r
-#ifdef MDE_CPU_IPF\r
- ASSERT (((UINTN)JumpBuffer & 0xf) == 0);\r
-#endif\r
+ ASSERT (((UINTN)JumpBuffer & ((BASE_LIBRARY_JUMP_BUFFER_ALIGNMENT - 1) >> 8)) == 0);\r
}\r