use directly AcpiReset() for acpi reboot
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34658 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
0338371f26
commit
996953e91c
@ -623,11 +623,10 @@ reboot(void)
|
||||
|
||||
TRACE("reboot\n");
|
||||
|
||||
if ((AcpiGbl_FADT.Flags & ACPI_FADT_RESET_REGISTER) == 0)
|
||||
status = AcpiReset();
|
||||
if (status == AE_NOT_EXIST)
|
||||
return B_UNSUPPORTED;
|
||||
|
||||
status = AcpiWrite(AcpiGbl_FADT.ResetValue, &AcpiGbl_FADT.ResetRegister);
|
||||
|
||||
|
||||
if (status != AE_OK) {
|
||||
ERROR("Reset failed, status = %d\n", status);
|
||||
return B_ERROR;
|
||||
|
Loading…
Reference in New Issue
Block a user