X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseLib%2FLongJump.c;h=958e850d125697f040b96fcdfa286f76fb46bc6d;hb=be5f16148584b0d771bdab651455cd9e27f556ce;hp=017a6802b36b04260e2132173d43306ba65cc77e;hpb=d5b86e43cf23787da85fcf862807c1f6714bfac2;p=mirror_edk2.git diff --git a/MdePkg/Library/BaseLib/LongJump.c b/MdePkg/Library/BaseLib/LongJump.c index 017a6802b3..958e850d12 100644 --- a/MdePkg/Library/BaseLib/LongJump.c +++ b/MdePkg/Library/BaseLib/LongJump.c @@ -12,9 +12,7 @@ **/ -// -// Include common header file for this module. -// + #include "BaseLibInternals.h" @@ -22,16 +20,17 @@ /** Restores the CPU context that was saved with SetJump(). - Restores the CPU context from the buffer specified by JumpBuffer. - This function never returns to the caller. - Instead is resumes execution based on the state of JumpBuffer. + Restores the CPU context from the buffer specified by JumpBuffer. This + function never returns to the caller. 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. - @param Value The value to return when the SetJump() context is restored. + @param JumpBuffer A pointer to CPU context buffer. + @param Value The value to return when the SetJump() context is + restored and must be non-zero. **/ VOID