#include "userprog/exception.h"
#endif
#ifdef FILESYS
-#include "devices/disk.h"
+#include "devices/block.h"
#include "filesys/filesys.h"
#endif
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++)
timer_print_stats ();
thread_print_stats ();
#ifdef FILESYS
- disk_print_stats ();
+ block_print_stats ();
#endif
console_print_stats ();
kbd_print_stats ();