2007-06-22 05:21:45 +02:00
|
|
|
/** @file
|
|
|
|
Internal ASSERT () functions for SetJump.
|
|
|
|
|
2008-12-29 15:07:07 +01:00
|
|
|
Copyright (c) 2006 - 2008, Intel Corporation
|
2007-06-22 05:21:45 +02:00
|
|
|
All rights reserved. This program and the accompanying materials
|
|
|
|
are licensed and made available under the terms and conditions of the BSD License
|
|
|
|
which accompanies this distribution. The full text of the license may be found at
|
|
|
|
http://opensource.org/licenses/bsd-license.php
|
|
|
|
|
|
|
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
|
|
|
|
|
|
**/
|
|
|
|
|
2008-09-17 09:46:17 +02:00
|
|
|
|
2007-06-30 01:22:13 +02:00
|
|
|
|
2007-06-22 05:21:45 +02:00
|
|
|
|
|
|
|
#include "BaseLibInternals.h"
|
|
|
|
|
|
|
|
/**
|
|
|
|
Worker function that checks ASSERT condition for JumpBuffer
|
|
|
|
|
|
|
|
Checks ASSERT condition for JumpBuffer.
|
|
|
|
|
|
|
|
If JumpBuffer is NULL, then ASSERT().
|
2008-12-11 03:59:41 +01:00
|
|
|
For IPF CPUs, if JumpBuffer is not aligned on a 16-byte boundary, then ASSERT().
|
2007-06-22 05:21:45 +02:00
|
|
|
|
|
|
|
@param JumpBuffer A pointer to CPU context buffer.
|
|
|
|
|
|
|
|
**/
|
|
|
|
VOID
|
|
|
|
EFIAPI
|
|
|
|
InternalAssertJumpBuffer (
|
|
|
|
IN BASE_LIBRARY_JUMP_BUFFER *JumpBuffer
|
|
|
|
)
|
|
|
|
{
|
|
|
|
ASSERT (JumpBuffer != NULL);
|
|
|
|
|
2008-02-01 15:54:52 +01:00
|
|
|
ASSERT (((UINTN)JumpBuffer & (BASE_LIBRARY_JUMP_BUFFER_ALIGNMENT - 1)) == 0);
|
2007-06-22 05:21:45 +02:00
|
|
|
}
|