X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseLib%2FEbc%2FSetJumpLongJump.c;h=4c0dba55d52f63c2591bd55cf2e2b801218c7cb5;hb=35a171541199329108aa8c5417386d7afce9ddbf;hp=a57d534ae13f3dc51294b7e371ea3b2d0b5876f5;hpb=1efcc4ae46f52e3845923ffbab68426e068709d2;p=mirror_edk2.git diff --git a/MdePkg/Library/BaseLib/Ebc/SetJumpLongJump.c b/MdePkg/Library/BaseLib/Ebc/SetJumpLongJump.c index a57d534ae1..4c0dba55d5 100644 --- a/MdePkg/Library/BaseLib/Ebc/SetJumpLongJump.c +++ b/MdePkg/Library/BaseLib/Ebc/SetJumpLongJump.c @@ -1,35 +1,21 @@ /** @file - Switch Stack functions. + Implementation of SetJump() and LongJump() on EBC. - Copyright (c) 2006, Intel Corporation - All rights reserved. This program and the accompanying materials + SetJump() and LongJump() are not currently supported for the EBC processor type. + Implementation for EBC just returns 0 for SetJump(), and ASSERT() for LongJump(). + + 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 - http://opensource.org/licenses/bsd-license.php + http://opensource.org/licenses/bsd-license.php. THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. **/ -#include - -/** - Worker function that checks ASSERT condition for JumpBuffer - - 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(). - - @param JumpBuffer A pointer to CPU context buffer. - -**/ -VOID -EFIAPI -InternalAssertJumpBuffer ( - IN BASE_LIBRARY_JUMP_BUFFER *JumpBuffer - ); +#include "BaseLibInternals.h" /** Saves the current CPU context that can be restored with a call to LongJump() and returns 0. @@ -43,11 +29,13 @@ InternalAssertJumpBuffer ( @param JumpBuffer A pointer to CPU context buffer. + @retval 0 Indicates a return from SetJump(). + **/ UINTN EFIAPI SetJump ( - IN BASE_LIBRARY_JUMP_BUFFER *JumpBuffer + OUT BASE_LIBRARY_JUMP_BUFFER *JumpBuffer ) { InternalAssertJumpBuffer (JumpBuffer); @@ -59,7 +47,7 @@ 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. + Instead it resumes execution based on the state of JumpBuffer. @param JumpBuffer A pointer to CPU context buffer. @param Value The value to return when the SetJump() context is restored.