#pragma intrinsic (__break)\r
#pragma intrinsic (__mfa)\r
\r
+\r
/**\r
Generates a breakpoint on the CPU.\r
\r
}\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
+ Enables CPU interrupts for the smallest window required to capture any\r
+ pending interrupts.\r
+\r
+**/\r
+VOID\r
+EFIAPI\r
+EnableDisableInterrupts (\r
+ VOID\r
+ )\r
+{\r
+ EnableInterrupts ();\r
+ DisableInterrupts ();\r
+}\r
\r
- Retrieves the current CPU interrupt state. Returns TRUE is interrupts are\r
- currently enabled. Otherwise returns FALSE.\r
+/**\r
+ Places the CPU in a sleep state until an interrupt is received.\r
\r
- @retval TRUE CPU interrupts are enabled.\r
- @retval FALSE CPU interrupts are disabled.\r
+ Places the CPU in a sleep state until an interrupt is received. If interrupts\r
+ are disabled prior to calling this function, then the CPU will be placed in a\r
+ sleep state indefinitely.\r
\r
**/\r
-BOOLEAN\r
+VOID\r
EFIAPI\r
-GetInterruptState (\r
+CpuSleep (\r
VOID\r
)\r
{\r
- return FALSE;\r
+ PalCallStatic (NULL, 29, 0, 0, 0);\r
}\r