xref: /reactos/hal/halarm/generic/reboot.c (revision 7f26a396)
1 /*
2  * PROJECT:         ReactOS HAL
3  * LICENSE:         BSD - See COPYING.ARM in the top level directory
4  * FILE:            hal/halarm/generic/reboot.c
5  * PURPOSE:         Reboot Function
6  * PROGRAMMERS:     ReactOS Portable Systems Group
7  */
8 
9 /* INCLUDES ******************************************************************/
10 
11 #include <hal.h>
12 
13 /* PUBLIC FUNCTIONS **********************************************************/
14 
15 #ifndef _MINIHAL_
16 /*
17  * @implemented
18  */
19 VOID
20 NTAPI
21 HalReturnToFirmware(
22     _In_ FIRMWARE_REENTRY Action)
23 {
24     /* Check what kind of action this is */
25     switch (Action)
26     {
27         /* All recognized actions */
28         case HalHaltRoutine:
29         case HalPowerDownRoutine:
30         case HalRestartRoutine:
31         case HalRebootRoutine:
32         {
33             /* Acquire the display */
34             InbvAcquireDisplayOwnership();
35             // TODO: Reboot
36         }
37 
38         /* Anything else */
39         default:
40         {
41             /* Print message and break */
42             DbgPrint("HalReturnToFirmware called!\n");
43             DbgBreakPoint();
44         }
45     }
46 }
47 #endif // _MINIHAL_
48 
49 /* EOF */
50