ReactOS  r76032
freeze.c File Reference
#include <ntoskrnl.h>
#include <debug.h>
Include dependency graph for freeze.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

BOOLEAN NTAPI KeFreezeExecution (IN PKTRAP_FRAME TrapFrame, IN PKEXCEPTION_FRAME ExceptionFrame)
 
VOID NTAPI KeThawExecution (IN BOOLEAN Enable)
 

Variables

KIRQL KiOldIrql
 
ULONG KiFreezeFlag
 

Macro Definition Documentation

#define NDEBUG

Definition at line 13 of file freeze.c.

Function Documentation

BOOLEAN NTAPI KeFreezeExecution ( IN PKTRAP_FRAME  TrapFrame,
IN PKEXCEPTION_FRAME  ExceptionFrame 
)

Definition at line 26 of file freeze.c.

Referenced by KdEnterDebugger().

28 {
30 
31  /* Disable interrupts and get previous state */
32  Enable = KeDisableInterrupts();
33 
34  /* Save freeze flag */
35  KiFreezeFlag = 4;
36 
37  /* Save the old IRQL */
39 
40  /* Return whether interrupts were enabled */
41  return Enable;
42 }
#define KeGetCurrentIrql()
Definition: env_spec_w32.h:706
BOOLEAN Enable
Definition: acefiex.h:245
FORCEINLINE BOOLEAN KeDisableInterrupts(VOID)
Definition: ke.h:152
unsigned char BOOLEAN
KIRQL KiOldIrql
Definition: freeze.c:19
ULONG KiFreezeFlag
Definition: freeze.c:20
VOID NTAPI KeThawExecution ( IN BOOLEAN  Enable)

Definition at line 46 of file freeze.c.

Referenced by KdExitDebugger().

47 {
48  /* Cleanup CPU caches */
50 
51  /* Re-enable interrupts */
52  if (Enable) _enable();
53 }
BOOLEAN Enable
Definition: acefiex.h:245
void __cdecl _enable(void)
Definition: intrin_arm.h:373
VOID NTAPI KeFlushCurrentTb(VOID)
Definition: cpu.c:332

Variable Documentation

ULONG KiFreezeFlag

Definition at line 20 of file freeze.c.

Referenced by KdEnterDebugger(), and KeFreezeExecution().

KIRQL KiOldIrql

Definition at line 19 of file freeze.c.

Referenced by KeFreezeExecution().