TianoCore EDK2 master
Loading...
Searching...
No Matches
LongJump.c File Reference
#include "BaseLibInternals.h"

Go to the source code of this file.

Functions

VOID EFIAPI LongJump (IN BASE_LIBRARY_JUMP_BUFFER *JumpBuffer, IN UINTN Value)
 

Detailed Description

Long Jump functions.

Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file LongJump.c.

Function Documentation

◆ LongJump()

VOID EFIAPI LongJump ( IN BASE_LIBRARY_JUMP_BUFFER *  JumpBuffer,
IN UINTN  Value 
)

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.

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().

Parameters
JumpBufferA pointer to CPU context buffer.
ValueThe value to return when the SetJump() context is restored and must be non-zero.

Definition at line 29 of file LongJump.c.