Added freeldr and hal from PPC branch, along with needed headers and
[reactos.git] / reactos / hal / halppc / generic / reboot.c
1 /* $Id: reboot.c 23907 2006-09-04 05:52:23Z arty $
2 *
3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS kernel
5 * FILE: ntoskrnl/hal/x86/reboot.c
6 * PURPOSE: Reboot functions.
7 * PROGRAMMER: Eric Kohl (ekohl@abo.rhein-zeitung.de)
8 * UPDATE HISTORY:
9 * Created 11/10/99
10 */
11
12 #include <hal.h>
13 #define NDEBUG
14 #include <debug.h>
15
16 typedef void (*void_fun)();
17 static VOID
18 HalReboot (VOID)
19 {
20 void_fun reset_vector = (void_fun)0xfff00100;
21 reset_vector();
22 }
23
24
25 VOID STDCALL
26 HalReturnToFirmware (
27 FIRMWARE_REENTRY Action
28 )
29 {
30 if (Action == HalHaltRoutine)
31 {
32 DbgPrint ("HalReturnToFirmware called!\n");
33 DbgBreakPoint ();
34 }
35 else if (Action == HalRebootRoutine)
36 {
37 HalReboot ();
38 }
39 }
40
41 /* EOF */