Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers...
[reactos.git] / hal / halppc / generic / reboot.c
diff --git a/hal/halppc/generic/reboot.c b/hal/halppc/generic/reboot.c
new file mode 100644 (file)
index 0000000..7e5b825
--- /dev/null
@@ -0,0 +1,40 @@
+/*
+ * COPYRIGHT:       See COPYING in the top level directory
+ * PROJECT:         ReactOS kernel
+ * FILE:            hal/halppc/generic/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 */