ReactOS  0.4.15-dev-309-g7c8d563
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

◆ NDEBUG

#define NDEBUG

Definition at line 13 of file freeze.c.

Function Documentation

◆ KeFreezeExecution()

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

Definition at line 26 of file freeze.c.

28 {
30 
31  /* Disable interrupts and get previous state */
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
_In_ ULONGLONG _In_ ULONGLONG _In_ BOOLEAN Enable
Definition: ntddpcm.h:140
unsigned char BOOLEAN
FORCEINLINE BOOLEAN KeDisableInterrupts(VOID)
Definition: ke.h:176
KIRQL KiOldIrql
Definition: freeze.c:19
ULONG KiFreezeFlag
Definition: freeze.c:20

◆ KeThawExecution()

VOID NTAPI KeThawExecution ( IN BOOLEAN  Enable)

Definition at line 46 of file freeze.c.

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

Variable Documentation

◆ KiFreezeFlag

ULONG KiFreezeFlag

Definition at line 20 of file freeze.c.

Referenced by KeFreezeExecution().

◆ KiOldIrql

KIRQL KiOldIrql

Definition at line 19 of file freeze.c.

Referenced by KeFreezeExecution().