Return B_NOT_SUPPORTED for shutdown if ACPI is unavailable (no APM on x86_64).
This commit is contained in:
@@ -1026,11 +1026,13 @@ arch_cpu_shutdown(bool rebootSystem)
|
|||||||
if (acpi_shutdown(rebootSystem) == B_OK)
|
if (acpi_shutdown(rebootSystem) == B_OK)
|
||||||
return B_OK;
|
return B_OK;
|
||||||
|
|
||||||
// TODO x86_64
|
if (!rebootSystem) {
|
||||||
#ifndef __x86_64
|
#ifndef __x86_64__
|
||||||
if (!rebootSystem)
|
|
||||||
return apm_shutdown();
|
return apm_shutdown();
|
||||||
|
#else
|
||||||
|
return B_NOT_SUPPORTED;
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
cpu_status state = disable_interrupts();
|
cpu_status state = disable_interrupts();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user