]>
git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/X86GetInterruptState.c
2 IA-32/x64 GetInterruptState()
4 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #include "BaseLibInternals.h"
12 Retrieves the current CPU interrupt state.
14 Returns TRUE is interrupts are currently enabled. Otherwise
17 @retval TRUE CPU interrupts are enabled.
18 @retval FALSE CPU interrupts are disabled.
29 EFlags
.UintN
= AsmReadEflags ();
30 return (BOOLEAN
)(1 == EFlags
.Bits
.IF
);