]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/Ipf/CpuBreakpoint.c
Update the copyright notice format
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ipf / CpuBreakpoint.c
index 987fc9c846bb402100fd11e345e8d23f554c1323..c1c2af9a70810bca449cfe64c70e48114eb8c989 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
   Base Library CPU functions for Itanium\r
 \r
-  Copyright (c) 2006, Intel Corporation<BR>\r
-  All rights reserved. This program and the accompanying materials\r
+  Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
+  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
   http://opensource.org/licenses/bsd-license.php\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