]>
git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/Ebc/CpuBreakpoint.c
2 Base Library CPU Functions for EBC
4 Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #include "BaseLibInternals.h"
18 Generates a breakpoint on the CPU.
20 Generates a breakpoint on the CPU. The breakpoint must be implemented such
21 that code can resume normal execution after the breakpoint.
34 Used to serialize load and store operations.
36 All loads and stores that proceed calls to this function are guaranteed to be
37 globally visible when this function returns.
49 Disables CPU interrupts.
62 Enables CPU interrupts.
75 Retrieves the current CPU interrupt state.
77 Returns TRUE means interrupts are currently enabled. Otherwise,
80 @retval TRUE CPU interrupts are enabled.
81 @retval FALSE CPU interrupts are disabled.
95 Enables CPU interrupts for the smallest window required to capture any
101 EnableDisableInterrupts (
106 DisableInterrupts ();
110 Requests CPU to pause for a short period of time.
112 Requests CPU to pause for a short period of time. Typically used in MP
113 systems to prevent memory starvation while waiting for a spin lock.