]>
git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/Ebc/CpuBreakpoint.c
f98d1073bba1030bf2d8ddea69cb644fe8951d34
3 Copyright (c) 2004 - 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
22 #include "BaseLibInternals.h"
31 Generates a breakpoint on the CPU.
33 Generates a breakpoint on the CPU. The breakpoint must be implemented such
34 that code can resume normal execution after the breakpoint.
47 Used to serialize load and store operations.
49 All loads and stores that proceed calls to this function are guaranteed to be
50 globally visible when this function returns.
62 Disables CPU interrupts.
64 Disables CPU interrupts.
77 Enables CPU interrupts.
79 Enables CPU interrupts.
92 Retrieves the current CPU interrupt state.
94 Retrieves the current CPU interrupt state. Returns TRUE is interrupts are
95 currently enabled. Otherwise returns FALSE.
97 @retval TRUE CPU interrupts are enabled.
98 @retval FALSE CPU interrupts are disabled.
103 GlueGetInterruptState (
112 Enables CPU interrupts for the smallest window required to capture any
115 Enables CPU interrupts for the smallest window required to capture any
121 EnableDisableInterrupts (
126 DisableInterrupts ();
130 Requests CPU to pause for a short period of time.
132 Requests CPU to pause for a short period of time. Typically used in MP
133 systems to prevent memory starvation while waiting for a spin lock.
145 Flushes all the Translation Lookaside Buffers(TLB) entries in a CPU.
147 Flushes all the Translation Lookaside Buffers(TLB) entries in a CPU.
160 Places the CPU in a sleep state until an interrupt is received.
162 Places the CPU in a sleep state until an interrupt is received. If interrupts
163 are disabled prior to calling this function, then the CPU will be placed in a
164 sleep state indefinitely.