]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - MdePkg/Library/BaseLib/LongJump.c
MdePkg: Apply uncrustify changes
[mirror_edk2.git] / MdePkg / Library / BaseLib / LongJump.c
... / ...
CommitLineData
1/** @file\r
2 Long Jump functions.\r
3\r
4 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
6\r
7**/\r
8\r
9#include "BaseLibInternals.h"\r
10\r
11/**\r
12 Restores the CPU context that was saved with SetJump().\r
13\r
14 Restores the CPU context from the buffer specified by JumpBuffer. This\r
15 function never returns to the caller. Instead is resumes execution based on\r
16 the state of JumpBuffer.\r
17\r
18 If JumpBuffer is NULL, then ASSERT().\r
19 For IPF CPUs, if JumpBuffer is not aligned on a 16-byte boundary, then ASSERT().\r
20 If Value is 0, then ASSERT().\r
21\r
22 @param JumpBuffer A pointer to CPU context buffer.\r
23 @param Value The value to return when the SetJump() context is\r
24 restored and must be non-zero.\r
25\r
26**/\r
27VOID\r
28EFIAPI\r
29LongJump (\r
30 IN BASE_LIBRARY_JUMP_BUFFER *JumpBuffer,\r
31 IN UINTN Value\r
32 )\r
33{\r
34 InternalAssertJumpBuffer (JumpBuffer);\r
35 ASSERT (Value != 0);\r
36\r
37 InternalLongJump (JumpBuffer, Value);\r
38}\r