X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseLib%2FLongJump.c;h=e39bc32a3cc261cf7abe9ef6e19a0cbafdba2e13;hb=3a98b778ab22972beb5fe8734d032d477dc5d870;hp=302d4bd232d1e8c6fa2ab8c367cfc2b3e6e9afdf;hpb=4cbd21753299e5c119af283aa49443a47d7a72fb;p=mirror_edk2.git diff --git a/MdePkg/Library/BaseLib/LongJump.c b/MdePkg/Library/BaseLib/LongJump.c index 302d4bd232..e39bc32a3c 100644 --- a/MdePkg/Library/BaseLib/LongJump.c +++ b/MdePkg/Library/BaseLib/LongJump.c @@ -14,18 +14,12 @@ **/ -VOID -EFIAPI -InternalAssertJumpBuffer ( - IN BASE_LIBRARY_JUMP_BUFFER *JumpBuffer - ); +// +// Include common header file for this module. +// +#include "CommonHeader.h" -VOID -EFIAPI -InternalLongJump ( - IN BASE_LIBRARY_JUMP_BUFFER *JumpBuffer, - IN UINTN Value - ); +#include "BaseLibInternals.h" /** Restores the CPU context that was saved with SetJump(). @@ -35,6 +29,7 @@ InternalLongJump ( Instead is resumes execution based on the state of JumpBuffer. If JumpBuffer is NULL, then ASSERT(). + For IPF CPUs, if JumpBuffer is not aligned on a 16-byte boundary, then ASSERT(). If Value is 0, then ASSERT(). @param JumpBuffer A pointer to CPU context buffer. @@ -49,5 +44,7 @@ LongJump ( ) { InternalAssertJumpBuffer (JumpBuffer); + ASSERT (Value != 0); + InternalLongJump (JumpBuffer, Value); }