TianoCore EDK2 master
|
#include "UnitTestHost.h"
Go to the source code of this file.
Functions | |
VOID EFIAPI | UnitTestHostBaseLibEnableInterrupts (VOID) |
VOID EFIAPI | UnitTestHostBaseLibDisableInterrupts (VOID) |
VOID EFIAPI | UnitTestHostBaseLibEnableDisableInterrupts (VOID) |
BOOLEAN EFIAPI | UnitTestHostBaseLibGetInterruptState (VOID) |
VOID EFIAPI | EnableInterrupts (VOID) |
VOID EFIAPI | DisableInterrupts (VOID) |
VOID EFIAPI | EnableDisableInterrupts (VOID) |
BOOLEAN EFIAPI | GetInterruptState (VOID) |
Variables | |
STATIC BOOLEAN | mUnitTestHostBaseLibInterruptState |
Common Unit Test Host functions.
Copyright (c) 2020, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file UnitTestHost.c.
VOID EFIAPI DisableInterrupts | ( | VOID | ) |
Disables CPU interrupts.
Definition at line 98 of file UnitTestHost.c.
VOID EFIAPI EnableDisableInterrupts | ( | VOID | ) |
Enables CPU interrupts for the smallest window required to capture any pending interrupts.
Definition at line 112 of file UnitTestHost.c.
VOID EFIAPI EnableInterrupts | ( | VOID | ) |
Enables CPU interrupts.
Definition at line 85 of file UnitTestHost.c.
BOOLEAN EFIAPI GetInterruptState | ( | VOID | ) |
Set the current CPU interrupt state.
Sets the current CPU interrupt state to the state specified by InterruptState. If InterruptState is TRUE, then interrupts are enabled. If InterruptState is FALSE, then interrupts are disabled. InterruptState is returned.
InterruptState | TRUE if interrupts should enabled. FALSE if interrupts should be disabled. |
Definition at line 135 of file UnitTestHost.c.
VOID EFIAPI UnitTestHostBaseLibDisableInterrupts | ( | VOID | ) |
Disables CPU interrupts.
Definition at line 35 of file UnitTestHost.c.
VOID EFIAPI UnitTestHostBaseLibEnableDisableInterrupts | ( | VOID | ) |
Enables CPU interrupts for the smallest window required to capture any pending interrupts.
Definition at line 49 of file UnitTestHost.c.
VOID EFIAPI UnitTestHostBaseLibEnableInterrupts | ( | VOID | ) |
Enables CPU interrupts.
Definition at line 22 of file UnitTestHost.c.
BOOLEAN EFIAPI UnitTestHostBaseLibGetInterruptState | ( | VOID | ) |
Set the current CPU interrupt state.
Sets the current CPU interrupt state to the state specified by InterruptState. If InterruptState is TRUE, then interrupts are enabled. If InterruptState is FALSE, then interrupts are disabled. InterruptState is returned.
InterruptState | TRUE if interrupts should enabled. FALSE if interrupts should be disabled. |
Definition at line 72 of file UnitTestHost.c.
STATIC BOOLEAN mUnitTestHostBaseLibInterruptState |
Module global variable for simple system emulation of interrupt state
Definition at line 14 of file UnitTestHost.c.