[HAL] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE-10114
[reactos.git] / reactos / hal / halppc / generic / reboot.c
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
17 HalReboot (VOID)
18 {
19 void_fun reset_vector = (void_fun)0xfff00100;
20 reset_vector();
21 }
22
23
24 VOID NTAPI
25 HalReturnToFirmware (
26 FIRMWARE_REENTRY Action
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 */