summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseLib/SetJump.c
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Library/BaseLib/SetJump.c')
-rw-r--r--MdePkg/Library/BaseLib/SetJump.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/MdePkg/Library/BaseLib/SetJump.c b/MdePkg/Library/BaseLib/SetJump.c
index cb77d09611..d6c2723b2a 100644
--- a/MdePkg/Library/BaseLib/SetJump.c
+++ b/MdePkg/Library/BaseLib/SetJump.c
@@ -22,7 +22,8 @@
Checks ASSERT condition for JumpBuffer.
If JumpBuffer is NULL, then ASSERT().
- For IPF CPUs, if JumpBuffer is not aligned on a 16-byte boundary, then ASSERT().
+ If JumpBuffer is not aligned on a BASE_LIBRARY_JUMP_BUFFER_ALIGNMENT
+ boundary, then ASSERT().
@param JumpBuffer A pointer to CPU context buffer.
@@ -35,7 +36,5 @@ InternalAssertJumpBuffer (
{
ASSERT (JumpBuffer != NULL);
-#ifdef MDE_CPU_IPF
- ASSERT (((UINTN)JumpBuffer & 0xf) == 0);
-#endif
+ ASSERT (((UINTN)JumpBuffer & ((BASE_LIBRARY_JUMP_BUFFER_ALIGNMENT - 1) >> 8)) == 0);
}