Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers...
[reactos.git] / hal / halarm / generic / reboot.c
diff --git a/hal/halarm/generic/reboot.c b/hal/halarm/generic/reboot.c
new file mode 100644 (file)
index 0000000..51de486
--- /dev/null
@@ -0,0 +1,43 @@
+/*
+ * 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>
+#define NDEBUG
+#include <debug.h>
+
+/* PUBLIC FUNCTIONS **********************************************************/
+
+/*
+ * @implemented
+ */
+VOID
+NTAPI
+HalReturnToFirmware(IN FIRMWARE_REENTRY Action)
+{
+    /* Check what kind of action this is */
+    switch (Action)
+    {
+        /* All recognized actions */
+        case HalHaltRoutine:
+        case HalRebootRoutine:
+
+            /* Acquire the display */
+            InbvAcquireDisplayOwnership();
+
+        /* Anything else */
+        default:
+
+            /* Print message and break */
+            DbgPrint("HalReturnToFirmware called!\n");
+            DbgBreakPoint();
+    }
+}
+
+/* EOF */