]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/BaseLib/SetJump.c
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / MdePkg / Library / BaseLib / SetJump.c
CommitLineData
e1f414b6 1/** @file\r
2 Internal ASSERT () functions for SetJump.\r
3\r
bb817c56 4 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
9344f092 5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
e1f414b6 6\r
e1f414b6 7**/\r
8\r
e1f414b6 9#include "BaseLibInternals.h"\r
10\r
11/**\r
12 Worker function that checks ASSERT condition for JumpBuffer\r
13\r
14 Checks ASSERT condition for JumpBuffer.\r
15\r
16 If JumpBuffer is NULL, then ASSERT().\r
2fc60b70 17 For IPF CPUs, if JumpBuffer is not aligned on a 16-byte boundary, then ASSERT().\r
e1f414b6 18\r
19 @param JumpBuffer A pointer to CPU context buffer.\r
20\r
21**/\r
22VOID\r
23EFIAPI\r
24InternalAssertJumpBuffer (\r
25 IN BASE_LIBRARY_JUMP_BUFFER *JumpBuffer\r
26 )\r
27{\r
28 ASSERT (JumpBuffer != NULL);\r
29\r
1e3ee536 30 ASSERT (((UINTN)JumpBuffer & (BASE_LIBRARY_JUMP_BUFFER_ALIGNMENT - 1)) == 0);\r
e1f414b6 31}\r