MdePkg/Library/BaseLib/Ebc/CpuBreakpoint.c File Reference


Functions

UINT64 _break (CHAR8 BreakCode)
VOID EFIAPI CpuBreakpoint (VOID)
VOID EFIAPI MemoryFence (VOID)
VOID EFIAPI DisableInterrupts (VOID)
VOID EFIAPI EnableInterrupts (VOID)
BOOLEAN EFIAPI GetInterruptState (VOID)
VOID EFIAPI EnableDisableInterrupts (VOID)
VOID EFIAPI CpuPause (VOID)

Detailed Description

Base Library CPU Functions for EBC

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/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.


Function Documentation

UINT64 _break ( CHAR8  BreakCode  ) 

Referenced by CpuBreakpoint().

VOID EFIAPI CpuBreakpoint ( VOID   ) 

Generates a breakpoint on the CPU.

Generates a breakpoint on the CPU. The breakpoint must be implemented such that code can resume normal execution after the breakpoint.

References _break().

VOID EFIAPI CpuPause ( VOID   ) 

Requests CPU to pause for a short period of time.

Requests CPU to pause for a short period of time. Typically used in MP systems to prevent memory starvation while waiting for a spin lock.

VOID EFIAPI DisableInterrupts ( VOID   ) 

Disables CPU interrupts.

References ASSERT, and FALSE.

VOID EFIAPI EnableDisableInterrupts ( VOID   ) 

Enables CPU interrupts for the smallest window required to capture any pending interrupts.

References DisableInterrupts(), and EnableInterrupts().

VOID EFIAPI EnableInterrupts ( VOID   ) 

Enables CPU interrupts.

References ASSERT, and FALSE.

BOOLEAN EFIAPI GetInterruptState ( VOID   ) 

Retrieves the current CPU interrupt state.

Returns TRUE means interrupts are currently enabled. Otherwise, returns FALSE.

Return values:
TRUE CPU interrupts are enabled.
FALSE CPU interrupts are disabled.

References ASSERT, and FALSE.

VOID EFIAPI MemoryFence ( VOID   ) 

Used to serialize load and store operations.

All loads and stores that proceed calls to this function are guaranteed to be globally visible when this function returns.


Generated on Thu Sep 24 23:14:22 2015 for MdePkg[ALL] by  doxygen 1.5.7.1