X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseLib%2FSetJump.c;h=81e2b578f95392147a603958c5b6da5946b5f0ee;hp=7bd37fc135e926ee0d1215b2dacd503b680436b5;hb=373ade0eb64a522e45b1b94c15b95fb5ab417c00;hpb=d5b86e43cf23787da85fcf862807c1f6714bfac2 diff --git a/MdePkg/Library/BaseLib/SetJump.c b/MdePkg/Library/BaseLib/SetJump.c index 7bd37fc135..81e2b578f9 100644 --- a/MdePkg/Library/BaseLib/SetJump.c +++ b/MdePkg/Library/BaseLib/SetJump.c @@ -1,7 +1,7 @@ /** @file Internal ASSERT () functions for SetJump. - Copyright (c) 2006, Intel Corporation + Copyright (c) 2006 - 2008, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -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); }