2010-02-09 02:26:28 +00:00
|
|
|
/*
|
|
|
|
* PROJECT: ReactOS HAL
|
|
|
|
* LICENSE: BSD - See COPYING.ARM in the top level directory
|
|
|
|
* FILE: hal/halarm/generic/reboot.c
|
|
|
|
* PURPOSE: Reboot Function
|
|
|
|
* PROGRAMMERS: ReactOS Portable Systems Group
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* INCLUDES ******************************************************************/
|
|
|
|
|
|
|
|
#include <hal.h>
|
|
|
|
|
|
|
|
/* PUBLIC FUNCTIONS **********************************************************/
|
|
|
|
|
2023-06-20 20:28:31 +00:00
|
|
|
#ifndef _MINIHAL_
|
2010-02-09 02:26:28 +00:00
|
|
|
/*
|
|
|
|
* @implemented
|
|
|
|
*/
|
|
|
|
VOID
|
|
|
|
NTAPI
|
2023-06-20 20:28:31 +00:00
|
|
|
HalReturnToFirmware(
|
|
|
|
_In_ FIRMWARE_REENTRY Action)
|
2010-02-09 02:26:28 +00:00
|
|
|
{
|
|
|
|
/* Check what kind of action this is */
|
|
|
|
switch (Action)
|
|
|
|
{
|
|
|
|
/* All recognized actions */
|
|
|
|
case HalHaltRoutine:
|
2023-06-20 20:28:31 +00:00
|
|
|
case HalPowerDownRoutine:
|
|
|
|
case HalRestartRoutine:
|
2010-02-09 02:26:28 +00:00
|
|
|
case HalRebootRoutine:
|
2023-06-20 20:28:31 +00:00
|
|
|
{
|
2010-02-09 02:26:28 +00:00
|
|
|
/* Acquire the display */
|
|
|
|
InbvAcquireDisplayOwnership();
|
2023-06-20 20:28:31 +00:00
|
|
|
// TODO: Reboot
|
|
|
|
}
|
2010-02-09 02:26:28 +00:00
|
|
|
|
|
|
|
/* Anything else */
|
|
|
|
default:
|
2023-06-20 20:28:31 +00:00
|
|
|
{
|
2010-02-09 02:26:28 +00:00
|
|
|
/* Print message and break */
|
|
|
|
DbgPrint("HalReturnToFirmware called!\n");
|
|
|
|
DbgBreakPoint();
|
2023-06-20 20:28:31 +00:00
|
|
|
}
|
2010-02-09 02:26:28 +00:00
|
|
|
}
|
|
|
|
}
|
2023-06-20 20:28:31 +00:00
|
|
|
#endif // _MINIHAL_
|
2010-02-09 02:26:28 +00:00
|
|
|
|
|
|
|
/* EOF */
|