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