Kernel: Add better panic message for failed shutdown
ACPI shutdown does not work on the web emulator and running `poweroff` crashes on `ASSERT_NOT_REACHED()`.
This commit is contained in:
parent
006a196e4a
commit
9f3f8f950a
|
@ -562,7 +562,7 @@ acpi_release_global_lock:
|
||||||
}
|
}
|
||||||
|
|
||||||
// system must not execute after sleep registers are written
|
// system must not execute after sleep registers are written
|
||||||
ASSERT_NOT_REACHED();
|
panic("ACPI shutdown failed. You can now safely shutdown your computer.");
|
||||||
}
|
}
|
||||||
|
|
||||||
BAN::ErrorOr<void> ACPI::reset()
|
BAN::ErrorOr<void> ACPI::reset()
|
||||||
|
|
Loading…
Reference in New Issue