2013-03-14 21:04:13 +00:00
|
|
|
/*
|
2007-09-03 01:57:36 +00:00
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
|
|
* PROJECT: ReactOS kernel
|
|
|
|
* FILE: ntoskrnl/hal/x86/reboot.c
|
|
|
|
* PURPOSE: Reboot functions.
|
2010-01-09 22:43:16 +00:00
|
|
|
* PROGRAMMER: Eric Kohl
|
2007-09-03 01:57:36 +00:00
|
|
|
* UPDATE HISTORY:
|
|
|
|
* Created 11/10/99
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <hal.h>
|
|
|
|
#define NDEBUG
|
|
|
|
#include <debug.h>
|
|
|
|
|
|
|
|
typedef void (*void_fun)();
|
|
|
|
static VOID
|
|
|
|
HalReboot (VOID)
|
|
|
|
{
|
|
|
|
void_fun reset_vector = (void_fun)0xfff00100;
|
|
|
|
reset_vector();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2008-11-29 23:16:39 +00:00
|
|
|
VOID NTAPI
|
2007-09-03 01:57:36 +00:00
|
|
|
HalReturnToFirmware (
|
|
|
|
FIRMWARE_REENTRY Action
|
|
|
|
)
|
|
|
|
{
|
|
|
|
if (Action == HalHaltRoutine)
|
|
|
|
{
|
|
|
|
DbgPrint ("HalReturnToFirmware called!\n");
|
|
|
|
DbgBreakPoint ();
|
|
|
|
}
|
|
|
|
else if (Action == HalRebootRoutine)
|
|
|
|
{
|
|
|
|
HalReboot ();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* EOF */
|