summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseLib/SetJump.c
diff options
context:
space:
mode:
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2007-03-15 02:33:16 +0000
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2007-03-15 02:33:16 +0000
commite5f461a8507ffcc89cd99ca43a09b76dca136ab5 (patch)
tree940e8e77690b58fe33b5d962ed599fcd36e6bc85 /MdePkg/Library/BaseLib/SetJump.c
parentaa156393bf28ce3c44d84b773e398070d1f4fe79 (diff)
1. Remove #ifdef _MSC_EXTENSION_ from all source files
2. Remove #ifdef _GCC_ from all resource files 3. Remove #if 0 from all resource files 4. Remove #ifdef MDE_CPU_IPF and #ifdef MDE_CPU_EBC 5. Remove #progam from Decode.c 6. Remove #ifdef TIANO_EXTENSION_FLAG from source files 7. Remove #ifdef SUPPORT_IPV6, since code base doesn't support IPV6 at all. 8. Remove #ifdef SpecialNowaitVersion from pxe_bc_mtftp.c, since it's only used for test. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2470 6f19259b-4bc3-4df7-8a09-765794883524
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);
}