]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/Ipf/CpuBreakpoint.c
Update copyright for files modified in this year
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ipf / CpuBreakpoint.c
index 987fc9c846bb402100fd11e345e8d23f554c1323..93c7dd724ebc3a31b73b40e4ca02c4af6babdcb5 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Base Library CPU functions for Itanium\r
 \r
-  Copyright (c) 2006, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
   All rights reserved. This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
 \r
 **/\r
 \r
-//void __mfa (void);\r
 \r
-#pragma intrinsic (_enable)\r
-#pragma intrinsic (_disable)\r
-#pragma intrinsic (__break)\r
-#pragma intrinsic (__mfa)\r
+#include "BaseLibInternals.h"\r
 \r
 /**\r
   Generates a breakpoint on the CPU.\r
@@ -82,20 +78,19 @@ EnableInterrupts (
 }\r
 \r
 /**\r
-  Retrieves the current CPU interrupt state.\r
+  Enables CPU interrupts for the smallest window required to capture any\r
+  pending interrupts.\r
 \r
-  Retrieves the current CPU interrupt state. Returns TRUE is interrupts are\r
-  currently enabled. Otherwise returns FALSE.\r
-\r
-  @retval TRUE  CPU interrupts are enabled.\r
-  @retval FALSE CPU interrupts are disabled.\r
+  Enables CPU interrupts for the smallest window required to capture any\r
+  pending interrupts.\r
 \r
 **/\r
-BOOLEAN\r
+VOID\r
 EFIAPI\r
-GetInterruptState (\r
+EnableDisableInterrupts (\r
   VOID\r
   )\r
 {\r
-  return FALSE;\r
+  EnableInterrupts ();\r
+  DisableInterrupts ();\r
 }\r