ReactOS  0.4.14-dev-998-g623dd26
reboot.c
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: ReactOS kernel
4  * FILE: hal/halppc/generic/reboot.c
5  * PURPOSE: Reboot functions.
6  * PROGRAMMER: Eric Kohl
7  * UPDATE HISTORY:
8  * Created 11/10/99
9  */
10 
11 #include <hal.h>
12 #define NDEBUG
13 #include <debug.h>
14 
15 typedef void (*void_fun)();
16 static VOID
18 {
19  void_fun reset_vector = (void_fun)0xfff00100;
20  reset_vector();
21 }
22 
23 
24 VOID NTAPI
27  )
28 {
29  if (Action == HalHaltRoutine)
30  {
31  DbgPrint ("HalReturnToFirmware called!\n");
32  DbgBreakPoint ();
33  }
34  else if (Action == HalRebootRoutine)
35  {
36  HalReboot ();
37  }
38 }
39 
40 /* EOF */
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
Definition: typeof.h:49
#define DbgPrint
Definition: loader.c:25
void DbgBreakPoint()
Definition: mach.c:553
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
static VOID HalReboot(VOID)
Definition: reboot.c:17
enum _FIRMWARE_REENTRY FIRMWARE_REENTRY
_In_ PLIST_ENTRY _In_ PSTRING _In_ USHORT _In_opt_ PSTRING _In_opt_ PSTRING _In_ ULONG _In_ ULONG Action
Definition: fsrtlfuncs.h:738
VOID NTAPI HalReturnToFirmware(IN FIRMWARE_REENTRY Action)
Definition: reboot.c:22
void(* void_fun)()
Definition: reboot.c:15