]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/BaseLib/X86GetInterruptState.c
MdePkg: Apply uncrustify changes
[mirror_edk2.git] / MdePkg / Library / BaseLib / X86GetInterruptState.c
CommitLineData
e1f414b6 1/** @file\r
2 IA-32/x64 GetInterruptState()\r
3\r
bb817c56 4 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
9344f092 5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
e1f414b6 6\r
e1f414b6 7**/\r
8\r
47fc17d8 9#include "BaseLibInternals.h"\r
f734a10a 10\r
e1f414b6 11/**\r
12 Retrieves the current CPU interrupt state.\r
13\r
9aa049d9 14 Returns TRUE is interrupts are currently enabled. Otherwise\r
15 returns FALSE.\r
e1f414b6 16\r
17 @retval TRUE CPU interrupts are enabled.\r
18 @retval FALSE CPU interrupts are disabled.\r
19\r
20**/\r
21BOOLEAN\r
22EFIAPI\r
23GetInterruptState (\r
24 VOID\r
25 )\r
26{\r
2f88bd3a 27 IA32_EFLAGS32 EFlags;\r
e1f414b6 28\r
29 EFlags.UintN = AsmReadEflags ();\r
38bbd3d9 30 return (BOOLEAN)(1 == EFlags.Bits.IF);\r
e1f414b6 31}\r