mirror of
https://github.com/reactos/reactos.git
synced 2024-09-10 12:54:51 +00:00
![Amine Khaldi](/assets/img/avatar_default.png)
* Create a branch for some evul shell experiments. svn path=/branches/shell-experiments/; revision=61927
41 lines
732 B
C
41 lines
732 B
C
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS kernel
|
|
* FILE: ntoskrnl/hal/x86/reboot.c
|
|
* PURPOSE: Reboot functions.
|
|
* PROGRAMMER: Eric Kohl
|
|
* 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();
|
|
}
|
|
|
|
|
|
VOID NTAPI
|
|
HalReturnToFirmware (
|
|
FIRMWARE_REENTRY Action
|
|
)
|
|
{
|
|
if (Action == HalHaltRoutine)
|
|
{
|
|
DbgPrint ("HalReturnToFirmware called!\n");
|
|
DbgBreakPoint ();
|
|
}
|
|
else if (Action == HalRebootRoutine)
|
|
{
|
|
HalReboot ();
|
|
}
|
|
}
|
|
|
|
/* EOF */
|