TianoCore EDK2 master
Loading...
Searching...
No Matches
Cpu.c File Reference
#include "BaseLibInternals.h"

Go to the source code of this file.

Functions

BOOLEAN EFIAPI SaveAndDisableInterrupts (VOID)
 
BOOLEAN EFIAPI SetInterruptState (IN BOOLEAN InterruptState)
 

Detailed Description

Base Library CPU Functions for all architectures.

Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file Cpu.c.

Function Documentation

◆ SaveAndDisableInterrupts()

BOOLEAN EFIAPI SaveAndDisableInterrupts ( VOID  )

Disables CPU interrupts and returns the interrupt state prior to the disable operation.

Return values
TRUECPU interrupts were enabled on entry to this call.
FALSECPU interrupts were disabled on entry to this call.

Definition at line 21 of file Cpu.c.

◆ SetInterruptState()

BOOLEAN EFIAPI SetInterruptState ( IN BOOLEAN  InterruptState)

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.

Parameters
InterruptStateTRUE if interrupts should be enabled. FALSE if interrupts should be disabled.
Returns
InterruptState

Definition at line 48 of file Cpu.c.