]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/LongJump.c
change LongJump() to _LongJump()
[mirror_edk2.git] / MdePkg / Library / BaseLib / LongJump.c
1 /** @file
2 Long Jump functions.
3
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
9
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.
12
13 Module Name: LongJump.c
14
15 **/
16
17 VOID
18 EFIAPI
19 _LongJump (
20 IN BASE_LIBRARY_JUMP_BUFFER *JumpBuffer,
21 IN UINTN Value
22 );
23
24 /**
25 Restores the CPU context that was saved with SetJump().
26
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.
30
31 If JumpBuffer is NULL, then ASSERT().
32 If Value is 0, then ASSERT().
33
34 @param JumpBuffer A pointer to CPU context buffer.
35 @param Value The value to return when the SetJump() context is restored.
36
37 **/
38 VOID
39 EFIAPI
40 LongJump (
41 IN BASE_LIBRARY_JUMP_BUFFER *JumpBuffer,
42 IN UINTN Value
43 )
44 {
45 ASSERT (JumpBuffer != NULL);
46 ASSERT (Value != 0);
47
48 _LongJump (JumpBuffer, Value);
49 }