]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/X86GetInterruptState.c
Update the copyright notice format
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / EdkIIGlueLib / Library / BaseLib / X86GetInterruptState.c
CommitLineData
3eb9473e 1/*++\r
2\r
3Copyright (c) 2004 - 2006, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12\r
13Module Name:\r
14\r
15 x86GetInterruptState.c\r
16 \r
17Abstract: \r
18\r
19 IA-32/x64 specific functions.\r
20\r
21--*/\r
22\r
c7f33ca4 23#include "BaseLibInternals.h"\r
3eb9473e 24\r
25/**\r
26 Retrieves the current CPU interrupt state.\r
27\r
28 Retrieves the current CPU interrupt state. Returns TRUE is interrupts are\r
29 currently enabled. Otherwise returns FALSE.\r
30\r
31 @retval TRUE CPU interrupts are enabled.\r
32 @retval FALSE CPU interrupts are disabled.\r
33\r
34**/\r
35BOOLEAN\r
36EFIAPI\r
37GlueGetInterruptState (\r
38 VOID\r
39 )\r
40{\r
41 IA32_EFLAGS32 EFlags;\r
42\r
43 EFlags.UintN = AsmReadEflags ();\r
44 return (BOOLEAN)(EFlags.Bits.IF == 1);\r
45}\r
46\r
47\r