X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseLib%2FEbc%2FSetJumpLongJump.c;h=ed4ec2f11571fc605c45352849533db43aa8c825;hp=b485d3e495d6d11c2b4a3fed95fed277786d969d;hb=c6aa36b6aa35958767c0006a2bd5edccc830b1c4;hpb=3e0578d234d6a4bbea99deedcde9d406be2f8010 diff --git a/MdePkg/Library/BaseLib/Ebc/SetJumpLongJump.c b/MdePkg/Library/BaseLib/Ebc/SetJumpLongJump.c index b485d3e495..ed4ec2f115 100644 --- a/MdePkg/Library/BaseLib/Ebc/SetJumpLongJump.c +++ b/MdePkg/Library/BaseLib/Ebc/SetJumpLongJump.c @@ -13,6 +13,10 @@ Module Name: SetJumpLongJump.c **/ +// +// Include common header file for this module. +// +#include /** Worker function that checks ASSERT condition for JumpBuffer @@ -33,15 +37,15 @@ InternalAssertJumpBuffer ( /** Saves the current CPU context that can be restored with a call to LongJump() and returns 0. - Saves the current CPU context in the buffer specified by JumpBuffer and returns 0. The initial - call to SetJump() must always return 0. Subsequent calls to LongJump() cause a non-zero - value to be returned by SetJump(). + Saves the current CPU context in the buffer specified by JumpBuffer and returns 0. The initial + call to SetJump() must always return 0. Subsequent calls to LongJump() cause a non-zero + value to be returned by SetJump(). If JumpBuffer is NULL, 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. - + **/ UINTN EFIAPI