X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseLib%2FSetJump.c;h=6cf197d535d536978105e2e2399d1c6105aca5de;hb=efb2311707ec50ff04ebaecbb151ce8d8f168ee4;hp=7bd37fc135e926ee0d1215b2dacd503b680436b5;hpb=d5b86e43cf23787da85fcf862807c1f6714bfac2;p=mirror_edk2.git diff --git a/MdePkg/Library/BaseLib/SetJump.c b/MdePkg/Library/BaseLib/SetJump.c index 7bd37fc135..6cf197d535 100644 --- a/MdePkg/Library/BaseLib/SetJump.c +++ b/MdePkg/Library/BaseLib/SetJump.c @@ -12,9 +12,7 @@ **/ -// -// Include common header file for this module. -// + #include "BaseLibInternals.h" @@ -25,8 +23,7 @@ Checks ASSERT condition for JumpBuffer. If JumpBuffer is NULL, then ASSERT(). - If JumpBuffer is not aligned on a BASE_LIBRARY_JUMP_BUFFER_ALIGNMENT - boundary, then ASSERT(). + For IPF CPUs, if JumpBuffer is not aligned on a 16-byte boundary, then ASSERT(). @param JumpBuffer A pointer to CPU context buffer. @@ -39,5 +36,5 @@ InternalAssertJumpBuffer ( { ASSERT (JumpBuffer != NULL); - ASSERT (((UINTN)JumpBuffer & ((BASE_LIBRARY_JUMP_BUFFER_ALIGNMENT - 1) >> 8)) == 0); + ASSERT (((UINTN)JumpBuffer & (BASE_LIBRARY_JUMP_BUFFER_ALIGNMENT - 1)) == 0); }