ReactOS  0.4.14-dev-998-g623dd26
reboot.c File Reference
#include <hal.h>
#include <debug.h>
Include dependency graph for reboot.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Typedefs

typedef void(* void_fun) ()
 

Functions

static VOID HalReboot (VOID)
 
VOID NTAPI HalReturnToFirmware (FIRMWARE_REENTRY Action)
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 12 of file reboot.c.

Typedef Documentation

◆ void_fun

typedef void(* void_fun) ()

Definition at line 15 of file reboot.c.

Function Documentation

◆ HalReboot()

static VOID HalReboot ( VOID  )
static

Definition at line 17 of file reboot.c.

18 {
19  void_fun reset_vector = (void_fun)0xfff00100;
20  reset_vector();
21 }
void(* void_fun)()
Definition: reboot.c:15

Referenced by HalReturnToFirmware().

◆ HalReturnToFirmware()

VOID NTAPI HalReturnToFirmware ( FIRMWARE_REENTRY  Action)

Definition at line 25 of file reboot.c.

28 {
29  if (Action == HalHaltRoutine)
30  {
31  DbgPrint ("HalReturnToFirmware called!\n");
32  DbgBreakPoint ();
33  }
34  else if (Action == HalRebootRoutine)
35  {
36  HalReboot ();
37  }
38 }
#define DbgPrint
Definition: loader.c:25
void DbgBreakPoint()
Definition: mach.c:553
static VOID HalReboot(VOID)
Definition: reboot.c:17
_In_ PLIST_ENTRY _In_ PSTRING _In_ USHORT _In_opt_ PSTRING _In_opt_ PSTRING _In_ ULONG _In_ ULONG Action
Definition: fsrtlfuncs.h:738