Return B_NOT_SUPPORTED for shutdown if ACPI is unavailable (no APM on x86_64).

This commit is contained in:
Alex Smith
2012-07-11 12:23:18 +01:00
parent 5670b0a8e4
commit 609b308e64
+5 -3
View File
@@ -1026,11 +1026,13 @@ arch_cpu_shutdown(bool rebootSystem)
if (acpi_shutdown(rebootSystem) == B_OK)
return B_OK;
// TODO x86_64
#ifndef __x86_64
if (!rebootSystem)
if (!rebootSystem) {
#ifndef __x86_64__
return apm_shutdown();
#else
return B_NOT_SUPPORTED;
#endif
}
cpu_status state = disable_interrupts();