]>
Commit | Line | Data |
---|---|---|
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 | |
1efcc4ae | 9 | \r |
f734a10a | 10 | \r |
e1f414b6 | 11 | \r |
12 | #include "BaseLibInternals.h"\r | |
13 | \r | |
14 | /**\r | |
15 | Worker function that checks ASSERT condition for JumpBuffer\r | |
16 | \r | |
17 | Checks ASSERT condition for JumpBuffer.\r | |
18 | \r | |
19 | If JumpBuffer is NULL, then ASSERT().\r | |
2fc60b70 | 20 | For IPF CPUs, if JumpBuffer is not aligned on a 16-byte boundary, then ASSERT().\r |
e1f414b6 | 21 | \r |
22 | @param JumpBuffer A pointer to CPU context buffer.\r | |
23 | \r | |
24 | **/\r | |
25 | VOID\r | |
26 | EFIAPI\r | |
27 | InternalAssertJumpBuffer (\r | |
28 | IN BASE_LIBRARY_JUMP_BUFFER *JumpBuffer\r | |
29 | )\r | |
30 | {\r | |
31 | ASSERT (JumpBuffer != NULL);\r | |
32 | \r | |
1e3ee536 | 33 | ASSERT (((UINTN)JumpBuffer & (BASE_LIBRARY_JUMP_BUFFER_ALIGNMENT - 1)) == 0);\r |
e1f414b6 | 34 | }\r |