EDK2 doxygen online documents  Firmware Encoding Index 1
EDK2 doxygen online documents  Firmware Encoding Index

#include <Base.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/PcdLib.h>
Go to the source code of this file.
Functions  
UINT64 EFIAPI  InternalMathLShiftU64 (IN UINT64 Operand, IN UINTN Count) 
UINT64 EFIAPI  InternalMathRShiftU64 (IN UINT64 Operand, IN UINTN Count) 
UINT64 EFIAPI  InternalMathARShiftU64 (IN UINT64 Operand, IN UINTN Count) 
UINT64 EFIAPI  InternalMathLRotU64 (IN UINT64 Operand, IN UINTN Count) 
UINT64 EFIAPI  InternalMathRRotU64 (IN UINT64 Operand, IN UINTN Count) 
UINT64 EFIAPI  InternalMathSwapBytes64 (IN UINT64 Operand) 
UINT64 EFIAPI  InternalMathMultU64x32 (IN UINT64 Multiplicand, IN UINT32 Multiplier) 
UINT64 EFIAPI  InternalMathMultU64x64 (IN UINT64 Multiplicand, IN UINT64 Multiplier) 
UINT64 EFIAPI  InternalMathDivU64x32 (IN UINT64 Dividend, IN UINT32 Divisor) 
UINT32 EFIAPI  InternalMathModU64x32 (IN UINT64 Dividend, IN UINT32 Divisor) 
UINT64 EFIAPI  InternalMathDivRemU64x32 (IN UINT64 Dividend, IN UINT32 Divisor, OUT UINT32 *Remainder OPTIONAL) 
UINT64 EFIAPI  InternalMathDivRemU64x64 (IN UINT64 Dividend, IN UINT64 Divisor, OUT UINT64 *Remainder OPTIONAL) 
INT64 EFIAPI  InternalMathDivRemS64x64 (IN INT64 Dividend, IN INT64 Divisor, OUT INT64 *Remainder OPTIONAL) 
VOID EFIAPI  InternalSwitchStack (IN SWITCH_STACK_ENTRY_POINT EntryPoint, IN VOID *Context1, OPTIONAL IN VOID *Context2, OPTIONAL IN VOID *NewStack, IN VA_LIST Marker) 
BOOLEAN EFIAPI  IsNodeInList (IN CONST LIST_ENTRY *List, IN CONST LIST_ENTRY *Node) 
UINTN EFIAPI  BitFieldReadUint (IN UINTN Operand, IN UINTN StartBit, IN UINTN EndBit) 
UINTN EFIAPI  BitFieldOrUint (IN UINTN Operand, IN UINTN StartBit, IN UINTN EndBit, IN UINTN OrData) 
UINTN EFIAPI  BitFieldAndUint (IN UINTN Operand, IN UINTN StartBit, IN UINTN EndBit, IN UINTN AndData) 
VOID EFIAPI  InternalAssertJumpBuffer (IN BASE_LIBRARY_JUMP_BUFFER *JumpBuffer) 
VOID EFIAPI  InternalLongJump (IN BASE_LIBRARY_JUMP_BUFFER *JumpBuffer, IN UINTN Value) 
Declaration of internal functions in BaseLib.
Copyright (c) 2006  2010, Intel Corporation. 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/bsdlicense.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.
Definition in file BaseLibInternals.h.
UINTN EFIAPI BitFieldAndUint  (  IN unsigned int  Operand, 
IN UINTN  StartBit,  
IN UINTN  EndBit,  
IN unsigned int  AndData  
) 
Worker function that reads a bit field from Operand, performs a bitwise AND, and returns the result.
Performs a bitwise AND between the bit field specified by StartBit and EndBit in Operand and the value specified by AndData. All other bits in Operand are preserved. The new value is returned.
Operand  Operand on which to perform the bitfield operation. 
StartBit  The ordinal of the least significant bit in the bit field. 
EndBit  The ordinal of the most significant bit in the bit field. 
AndData  The value to And with the read value from the value 
Definition at line 99 of file BitField.c.
UINTN EFIAPI BitFieldOrUint  (  IN unsigned int  Operand, 
IN UINTN  StartBit,  
IN UINTN  EndBit,  
IN unsigned int  OrData  
) 
Worker function that reads a bit field from Operand, performs a bitwise OR, and returns the result.
Performs a bitwise OR between the bit field specified by StartBit and EndBit in Operand and the value specified by AndData. All other bits in Operand are preserved. The new value is returned.
Operand  Operand on which to perform the bitfield operation. 
StartBit  The ordinal of the least significant bit in the bit field. 
EndBit  The ordinal of the most significant bit in the bit field. 
OrData  The value to OR with the read value from the value 
Definition at line 68 of file BitField.c.
Worker function that returns a bit field from Operand.
Returns the bitfield specified by the StartBit and the EndBit from Operand.
Operand  Operand on which to perform the bitfield operation. 
StartBit  The ordinal of the least significant bit in the bit field. 
EndBit  The ordinal of the most significant bit in the bit field. 
Worker function that returns a bit field from Operand
Returns the bitfield specified by the StartBit and the EndBit from Operand.
Operand  Operand on which to perform the bitfield operation. 
StartBit  The ordinal of the least significant bit in the bit field. 
EndBit  The ordinal of the most significant bit in the bit field. 
Definition at line 38 of file BitField.c.
VOID EFIAPI InternalAssertJumpBuffer  (  IN BASE_LIBRARY_JUMP_BUFFER *  JumpBuffer  ) 
Worker function that checks ASSERT condition for JumpBuffer
Checks ASSERT condition for JumpBuffer.
If JumpBuffer is NULL, then ASSERT(). For IPF CPUs, if JumpBuffer is not aligned on a 16byte boundary, then ASSERT().
JumpBuffer  A pointer to CPU context buffer. 
Worker function that checks ASSERT condition for JumpBuffer
Checks ASSERT condition for JumpBuffer.
If JumpBuffer is NULL, then ASSERT(). If JumpBuffer is not aligned on a BASE_LIBRARY_JUMP_BUFFER_ALIGNMENT boundary, then ASSERT().
JumpBuffer  A pointer to CPU context buffer. 
VOID EFIAPI InternalLongJump  (  IN BASE_LIBRARY_JUMP_BUFFER *  JumpBuffer, 
IN UINTN  Value  
) 
Restores the CPU context that was saved with SetJump().
Restores the CPU context from the buffer specified by JumpBuffer. This function never returns to the caller. Instead is resumes execution based on the state of JumpBuffer.
JumpBuffer  A pointer to CPU context buffer. 
Value  The value to return when the SetJump() context is restored. 
Restores the CPU context that was saved with SetJump().
Restores the CPU context from the buffer specified by JumpBuffer. This function never returns to the caller. Instead it resumes execution based on the state of JumpBuffer.
JumpBuffer  A pointer to CPU context buffer. 
Value  The value to return when the SetJump() context is restored. 
Definition at line 77 of file SetJumpLongJump.c.
Shifts a 64bit integer right between 0 and 63 bits. The high bits are filled with original integer's bit 63. The shifted value is returned.
This function shifts the 64bit value Operand to the right by Count bits. The high Count bits are set to bit 63 of Operand. The shifted value is returned.
Operand  The 64bit operand to shift right. 
Count  The number of bits to shift right. 
64bit arithmetic right shift function for IA32.
Copyright (c) 2006  2007, Intel Corporation. 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/bsdlicense.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.
Shifts a 64bit integer right between 0 and 63 bits. The high bits are filled with original integer's bit 63. The shifted value is returned.
This function shifts the 64bit value Operand to the right by Count bits. The high Count bits are set to bit 63 of Operand. The shifted value is returned.
If Count is greater than 63, then ASSERT().
Operand  The 64bit operand to shift right. 
Count  The number of bits to shift right. 
Shifts a 64bit integer right between 0 and 63 bits. The high bits are filled with original integer's bit 63. The shifted value is returned.
This function shifts the 64bit value Operand to the right by Count bits. The high Count bits are set to bit 63 of Operand. The shifted value is returned.
Operand  The 64bit operand to shift right. 
Count  The number of bits to shift right. 
Definition at line 19 of file ARShiftU64.c.
INT64 EFIAPI InternalMathDivRemS64x64  (  IN INT64  Dividend, 
IN INT64  Divisor,  
OUT INT64 *Remainder  OPTIONAL  
) 
Divides a 64bit signed integer by a 64bit signed integer and generates a 64bit signed result and an optional 64bit signed remainder.
This function divides the 64bit signed value Dividend by the 64bit signed value Divisor and generates a 64bit signed quotient. If Remainder is not NULL, then the 64bit signed remainder is returned in Remainder. This function returns the 64bit signed quotient.
Dividend  A 64bit signed value. 
Divisor  A 64bit signed value. 
Remainder  A pointer to a 64bit signed value. This parameter is optional and may be NULL. 
Worker function that Divides a 64bit signed integer by a 64bit signed integer and generates a 64bit signed result and a optional 64bit signed remainder.
This function divides the 64bit unsigned value Dividend by the 64bit unsigned value Divisor and generates a 64bit unsigned quotient. If Remainder is not NULL, then the 64bit unsigned remainder is returned in Remainder. This function returns the 64bit unsigned quotient.
Dividend  A 64bit signed value. 
Divisor  A 64bit signed value. 
Remainder  A pointer to a 64bit signed value. This parameter is optional and may be NULL. 
Divides a 64bit signed integer by a 64bit signed integer and generates a 64bit signed result and a optional 64bit signed remainder.
This function divides the 64bit unsigned value Dividend by the 64bit unsigned value Divisor and generates a 64bit unsigned quotient. If Remainder is not NULL, then the 64bit unsigned remainder is returned in Remainder. This function returns the 64bit unsigned quotient.
Dividend  A 64bit signed value. 
Divisor  A 64bit signed value. 
Remainder  A pointer to a 64bit signed value. This parameter is optional and may be NULL. 
Worker function that Divides a 64bit signed integer by a 64bit signed integer and generates a 64bit signed result and a optional 64bit signed remainder.
This function divides the 64bit signed value Dividend by the 64bit signed value Divisor and generates a 64bit signed quotient. If Remainder is not NULL, then the 64bit signed remainder is returned in Remainder. This function returns the 64bit signed quotient.
Dividend  A 64bit signed value. 
Divisor  A 64bit signed value. 
Remainder  A pointer to a 64bit signed value. This parameter is optional and may be NULL. 
Divides a 64bit signed integer by a 64bit signed integer and generates a 64bit signed result and an optional 64bit signed remainder.
This function divides the 64bit signed value Dividend by the 64bit signed value Divisor and generates a 64bit signed quotient. If Remainder is not NULL, then the 64bit signed remainder is returned in Remainder. This function returns the 64bit signed quotient.
Dividend  A 64bit signed value. 
Divisor  A 64bit signed value. 
Remainder  A pointer to a 64bit signed value. This parameter is optional and may be NULL. 
Definition at line 43 of file DivS64x64Remainder.c.
UINT64 EFIAPI InternalMathDivRemU64x32  (  IN UINT64  Dividend, 
IN UINT32  Divisor,  
OUT UINT32 *Remainder  OPTIONAL  
) 
Divides a 64bit unsigned integer by a 32bit unsigned integer and generates a 64bit unsigned result and an optional 32bit unsigned remainder.
This function divides the 64bit unsigned value Dividend by the 32bit unsigned value Divisor and generates a 64bit unsigned quotient. If Remainder is not NULL, then the 32bit unsigned remainder is returned in Remainder. This function returns the 64bit unsigned quotient.
Dividend  A 64bit unsigned value. 
Divisor  A 32bit unsigned value. 
Remainder  A pointer to a 32bit unsigned value. This parameter is optional and may be NULL. 
Divides a 64bit unsigned integer by a 32bit unsigned integer and generates a 64bit unsigned result and an optional 32bit unsigned remainder.
This function divides the 64bit unsigned value Dividend by the 32bit unsigned value Divisor and generates a 64bit unsigned quotient. If Remainder is not NULL, then the 32bit unsigned remainder is returned in Remainder. This function returns the 64bit unsigned quotient.
Dividend  A 64bit unsigned value. 
Divisor  A 32bit unsigned value. 
Remainder  A pointer to a 32bit unsigned value. This parameter is optional and may be NULL. 
UINT64 EFIAPI InternalMathDivRemU64x64  (  IN UINT64  Dividend, 
IN UINT64  Divisor,  
OUT UINT64 *Remainder  OPTIONAL  
) 
Divides a 64bit unsigned integer by a 64bit unsigned integer and generates a 64bit unsigned result and an optional 64bit unsigned remainder.
This function divides the 64bit unsigned value Dividend by the 64bit unsigned value Divisor and generates a 64bit unsigned quotient. If Remainder is not NULL, then the 64bit unsigned remainder is returned in Remainder. This function returns the 64bit unsigned quotient.
Dividend  A 64bit unsigned value. 
Divisor  A 64bit unsigned value. 
Remainder  A pointer to a 64bit unsigned value. This parameter is optional and may be NULL. 
Calculate the quotient of a 64bit integer by a 64bit integer and returns both the quotient and the remainderSet error flag for all division functions
Copyright (c) 2006  2007, Intel Corporation. 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/bsdlicense.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.
Definition at line 20 of file DivU64x64Remainder.c.
Divides a 64bit unsigned integer by a 32bit unsigned integer and generates a 64bit unsigned result.
This function divides the 64bit unsigned value Dividend by the 32bit unsigned value Divisor and generates a 64bit unsigned quotient. This function returns the 64bit unsigned quotient.
Dividend  A 64bit unsigned value. 
Divisor  A 32bit unsigned value. 
Calculate the quotient of a 64bit integer by a 32bit integer
Copyright (c) 2006  2007, Intel Corporation. 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/bsdlicense.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.
Divides a 64bit unsigned integer by a 32bit unsigned integer and generates a 64bit unsigned result.
This function divides the 64bit unsigned value Dividend by the 32bit unsigned value Divisor and generates a 64bit unsigned quotient. This function returns the 64bit unsigned quotient.
Dividend  A 64bit unsigned value. 
Divisor  A 32bit unsigned value. 
Definition at line 19 of file DivU64x32.c.
Rotates a 64bit integer left between 0 and 63 bits, filling the low bits with the high bits that were rotated.
This function rotates the 64bit value Operand to the left by Count bits. The low Count bits are filled with the high Count bits of Operand. The rotated value is returned.
Operand  The 64bit operand to rotate left. 
Count  The number of bits to rotate left. 
Rotates a 64bit integer left between 0 and 63 bits, filling the low bits with the high bits that were rotated.
This function rotates the 64bit value Operand to the left by Count bits. The low Count bits are fill with the high Count bits of Operand. The rotated value is returned.
Operand  The 64bit operand to rotate left. 
Count  The number of bits to rotate left. 
Rotates a 64bit integer left between 0 and 63 bits, filling the low bits with the high bits that were rotated.
This function rotates the 64bit value Operand to the left by Count bits. The low Count bits are fill with the high Count bits of Operand. The rotated value is returned.
Operand  The 64bit operand to rotate left. 
Count  The number of bits to rotate left. 
Shifts a 64bit integer left between 0 and 63 bits. The low bits are filled with zeros. The shifted value is returned.
This function shifts the 64bit value Operand to the left by Count bits. The low Count bits are set to zero. The shifted value is returned.
Operand  The 64bit operand to shift left. 
Count  The number of bits to shift left. 
Shifts a 64bit integer left between 0 and 63 bits. The low bits are filled with zeros. The shifted value is returned.
This function shifts the 64bit value Operand to the left by Count bits. The low Count bits are set to zero. The shifted value is returned.
Operand  The 64bit operand to shift left. 
Count  The number of bits to shift left. 
Definition at line 27 of file LShiftU64.c.
Divides a 64bit unsigned integer by a 32bit unsigned integer and generates a 32bit unsigned remainder.
This function divides the 64bit unsigned value Dividend by the 32bit unsigned value Divisor and generates a 32bit remainder. This function returns the 32bit unsigned remainder.
Dividend  A 64bit unsigned value. 
Divisor  A 32bit unsigned value. 
Divides a 64bit unsigned integer by a 32bit unsigned integer and generates a 32bit unsigned remainder.
This function divides the 64bit unsigned value Dividend by the 32bit unsigned value Divisor and generates a 32bit remainder. This function returns the 32bit unsigned remainder.
Dividend  A 64bit unsigned value. 
Divisor  A 32bit unsigned value. 
Definition at line 27 of file ModU64x32.c.
Multiplies a 64bit unsigned integer by a 32bit unsigned integer and generates a 64bit unsigned result.
This function multiplies the 64bit unsigned value Multiplicand by the 32bit unsigned value Multiplier and generates a 64bit unsigned result. This 64 bit unsigned result is returned.
Multiplicand  A 64bit unsigned value. 
Multiplier  A 32bit unsigned value. 
Multiples a 64bit unsigned integer by a 32bit unsigned integer and generates a 64bit unsigned result.
This function multiples the 64bit unsigned value Multiplicand by the 32bit unsigned value Multiplier and generates a 64bit unsigned result. This 64 bit unsigned result is returned.
Multiplicand  A 64bit unsigned value. 
Multiplier  A 32bit unsigned value. 
Definition at line 27 of file MultU64x32.c.
Multiplies a 64bit unsigned integer by a 64bit unsigned integer and generates a 64bit unsigned result.
This function multiples the 64bit unsigned value Multiplicand by the 64bit unsigned value Multiplier and generates a 64bit unsigned result. This 64 bit unsigned result is returned.
Multiplicand  A 64bit unsigned value. 
Multiplier  A 64bit unsigned value. 
Multiples a 64bit unsigned integer by a 64bit unsigned integer and generates a 64bit unsigned result.
This function multiples the 64bit unsigned value Multiplicand by the 64bit unsigned value Multiplier and generates a 64bit unsigned result. This 64 bit unsigned result is returned.
Multiplicand  A 64bit unsigned value. 
Multiplier  A 64bit unsigned value. 
Multiplies a 64bit unsigned integer by a 64bit unsigned integer and generates a 64bit unsigned result.
This function multiplies the 64bit unsigned value Multiplicand by the 64bit unsigned value Multiplier and generates a 64bit unsigned result. This 64 bit unsigned result is returned.
Multiplicand  A 64bit unsigned value. 
Multiplier  A 64bit unsigned value. 
Multiplies a 64bit unsigned integer by a 64bit unsigned integer and generates a 64bit unsigned result.
This function multiplies the 64bit unsigned value Multiplicand by the 64bit unsigned value Multiplier and generates a 64bit unsigned result. This 64 bit unsigned result is returned.
Multiplicand  A 64bit unsigned value. 
Multiplier  A 64bit unsigned value. 
Definition at line 27 of file MultU64x64.c.
Rotates a 64bit integer right between 0 and 63 bits, filling the high bits with the high low bits that were rotated.
This function rotates the 64bit value Operand to the right by Count bits. The high Count bits are filled with the low Count bits of Operand. The rotated value is returned.
Operand  The 64bit operand to rotate right. 
Count  The number of bits to rotate right. 
64bit right rotation for Ia32
Copyright (c) 2006  2007, Intel Corporation. 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/bsdlicense.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.
Rotates a 64bit integer right between 0 and 63 bits, filling the high bits with the high low bits that were rotated.
This function rotates the 64bit value Operand to the right by Count bits. The high Count bits are fill with the low Count bits of Operand. The rotated value is returned.
Operand  The 64bit operand to rotate right. 
Count  The number of bits to rotate right. 
Rotates a 64bit integer right between 0 and 63 bits, filling the high bits with the high low bits that were rotated.
This function rotates the 64bit value Operand to the right by Count bits. The high Count bits are fill with the low Count bits of Operand. The rotated value is returned.
Operand  The 64bit operand to rotate right. 
Count  The number of bits to rotate right. 
Shifts a 64bit integer right between 0 and 63 bits. The high bits are filled with zeros. The shifted value is returned.
This function shifts the 64bit value Operand to the right by Count bits. The high Count bits are set to zero. The shifted value is returned.
Operand  The 64bit operand to shift right. 
Count  The number of bits to shift right. 
Shifts a 64bit integer right between 0 and 63 bits. This high bits are filled with zeros. The shifted value is returned.
This function shifts the 64bit value Operand to the right by Count bits. The high Count bits are set to zero. The shifted value is returned.
Operand  The 64bit operand to shift right. 
Count  The number of bits to shift right. 
Shifts a 64bit integer right between 0 and 63 bits. This high bits are filled with zeros. The shifted value is returned.
This function shifts the 64bit value Operand to the right by Count bits. The high Count bits are set to zero. The shifted value is returned.
Operand  The 64bit operand to shift right. 
Count  The number of bits to shift right. 
Definition at line 27 of file RShiftU64.c.
Switches the endianess of a 64bit integer.
This function swaps the bytes in a 64bit unsigned value to switch the value from little endian to big endian or vice versa. The byte swapped value is returned.
Operand  A 64bit unsigned value. 
Implementation of 64bit swap bytes
Copyright (c) 2006  2007, Intel Corporation. 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/bsdlicense.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.
Switches the endianess of a 64bit integer.
This function swaps the bytes in a 64bit unsigned value to switch the value from little endian to big endian or vice versa. The byte swapped value is returned.
Operand  A 64bit unsigned value. 
Definition at line 19 of file SwapBytes64.c.
VOID EFIAPI InternalSwitchStack  (  IN SWITCH_STACK_ENTRY_POINT  EntryPoint, 
IN VOID *  Context1,  
OPTIONAL IN VOID *  Context2,  
OPTIONAL IN VOID *  NewStack,  
IN VA_LIST  Marker  
) 
Transfers control to a function starting with a new stack.
Transfers control to the function specified by EntryPoint using the new stack specified by NewStack and passing in the parameters specified by Context1 and Context2. Context1 and Context2 are optional and may be NULL. The function EntryPoint must never return. Marker will be ignored on IA32, x64, and EBC. IPF CPUs expect one additional parameter of type VOID * that specifies the new backing store pointer.
If EntryPoint is NULL, then ASSERT(). If NewStack is NULL, then ASSERT().
EntryPoint  A pointer to function to call with the new stack. 
Context1  A pointer to the context to pass into the EntryPoint function. 
Context2  A pointer to the context to pass into the EntryPoint function. 
NewStack  A pointer to the new stack to use for the EntryPoint function. 
Marker  VA_LIST marker for the variable argument list. 
Transfers control to a function starting with a new stack.
Transfers control to the function specified by EntryPoint using the new stack specified by NewStack and passing in the parameters specified by Context1 and by Context1 and Context2. Context1 and Context2 are optional and may be NULL. The function EntryPoint must never return. Marker will be ignored on IA32, x64, and EBC. IPF CPUs expect one additional parameter of type VOID * that specifies the new backing store pointer.
If EntryPoint is NULL, then ASSERT(). If NewStack is NULL, then ASSERT().
EntryPoint  A pointer to function to call with the new stack. 
Context1  A pointer to the context to pass into the EntryPoint function. 
Context2  A pointer to the context to pass into the EntryPoint function. 
NewStack  A pointer to the new stack to use for the EntryPoint function. 
Marker  VA_LIST marker for the variable argument list. 
SwitchStack() function for IPF.
Copyright (c) 2007, Intel Corporation. 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/bsdlicense.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.
Module Name: InternalSwitchStack.c Transfers control to a function starting with a new stack.
Transfers control to the function specified by EntryPoint using the new stack specified by NewStack and passing in the parameters specified by Context1 and Context2. Context1 and Context2 are optional and may be NULL. The function EntryPoint must never return. Marker will be ignored on IA32, x64, and EBC. IPF CPUs expect one additional parameter of type VOID * that specifies the new backing store pointer.
If EntryPoint is NULL, then ASSERT(). If NewStack is NULL, then ASSERT().
EntryPoint  A pointer to function to call with the new stack. 
Context1  A pointer to the context to pass into the EntryPoint function. 
Context2  A pointer to the context to pass into the EntryPoint function. 
NewStack  A pointer to the new stack to use for the EntryPoint function. 
Marker  VA_LIST marker for the variable argument list. 
Transfers control to a function starting with a new stack.
Transfers control to the function specified by EntryPoint using the new stack specified by NewStack, and passes in the parameters specified by Context1 and Context2. Context1 and Context2 are optional and may be NULL. The function EntryPoint must never return. Marker will be ignored on IA32, x64, and EBC. IPF CPUs expect one additional parameter of type VOID * that specifies the new backing store pointer.
If EntryPoint is NULL, then ASSERT(). If NewStack is NULL, then ASSERT().
EntryPoint  A pointer to function to call with the new stack. 
Context1  A pointer to the context to pass into the EntryPoint function. 
Context2  A pointer to the context to pass into the EntryPoint function. 
NewStack  A pointer to the new stack to use for the EntryPoint function. 
Marker  A VA_LIST marker for the variable argument list. 
Transfers control to a function starting with a new stack.
Transfers control to the function specified by EntryPoint using the new stack specified by NewStack and passing in the parameters specified by Context1 and Context2. Context1 and Context2 are optional and may be NULL. The function EntryPoint must never return. Marker will be ignored on IA32, x64, and EBC. IPF CPUs expect one additional parameter of type VOID * that specifies the new backing store pointer.
If EntryPoint is NULL, then ASSERT(). If NewStack is NULL, then ASSERT().
EntryPoint  A pointer to function to call with the new stack. 
Context1  A pointer to the context to pass into the EntryPoint function. 
Context2  A pointer to the context to pass into the EntryPoint function. 
NewStack  A pointer to the new stack to use for the EntryPoint function. 
Marker  A VA_LIST marker for the variable argument list. 
Definition at line 50 of file SwitchStack.c.
BOOLEAN EFIAPI IsNodeInList  (  IN CONST LIST_ENTRY *  List, 
IN CONST LIST_ENTRY *  Node  
) 
Worker function that locates the Node in the List.
By searching the List, finds the location of the Node in List. At the same time, verifies the validity of this list.
If List is NULL, then ASSERT(). If List>ForwardLink is NULL, then ASSERT(). If List>backLink is NULL, then ASSERT(). If Node is NULL, then ASSERT(); If PcdMaximumLinkedListLenth is not zero, and prior to insertion the number of nodes in ListHead, including the ListHead node, is greater than or equal to PcdMaximumLinkedListLength, then ASSERT().
List  A pointer to a node in a linked list. 
Node  A pointer to one nod. 
TRUE  Node is in List. 
FALSE  Node isn't in List, or List is invalid. 
Worker function that locates the Node in the List
By searching the List, finds the location of the Node in List. At the same time, verifies the validity of this list.
If List is NULL, then ASSERT(). If List>ForwardLink is NULL, then ASSERT(). If List>backLink is NULL, then ASSERT(). If Node is NULL, then ASSERT(); If PcdMaximumLinkedListLenth is not zero, and prior to insertion the number of nodes in ListHead, including the ListHead node, is greater than or equal to PcdMaximumLinkedListLength, then ASSERT().
List  A pointer to a node in a linked list. 
Node  A pointer to one nod. 
TRUE  Node is in List 
FALSE  Node isn't in List, or List is invalid 
Definition at line 47 of file LinkedList.c.