4 Copyright (c) 2006, Intel Corporation
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13 Module Name: LongJump.c
20 IN BASE_LIBRARY_JUMP_BUFFER
*JumpBuffer
,
25 Restores the CPU context that was saved with SetJump().
27 Restores the CPU context from the buffer specified by JumpBuffer.
28 This function never returns to the caller.
29 Instead is resumes execution based on the state of JumpBuffer.
31 If JumpBuffer is NULL, then ASSERT().
32 If Value is 0, then ASSERT().
34 @param JumpBuffer A pointer to CPU context buffer.
35 @param Value The value to return when the SetJump() context is restored.
41 IN BASE_LIBRARY_JUMP_BUFFER
*JumpBuffer
,
45 ASSERT (JumpBuffer
!= NULL
);
48 _LongJump (JumpBuffer
, Value
);