Add ACPI shutdown sequence
[pintos-anon] / src / devices / shutdown.c
index 7ff9a95adbe080893eef291ca96c937afdf8d44b..61c76f7b060d2746ae6fa1763feede4f895db200 100644 (file)
@@ -99,6 +99,9 @@ shutdown_power_off (void)
   printf ("Powering off...\n");
   serial_flush ();
 
+  /* ACPI power-off */
+  outw (0xB004, 0x2000);
+
   /* This is a special power-off sequence supported by Bochs and
      QEMU, but not by physical hardware. */
   for (p = s; *p != '\0'; p++)