mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-13 02:16:39 +02:00
Use `arch_specific_poweroff` directly instead of duplicating its
contents in Panic.cpp.
The current panic=shutdown RISC-V implementation sets the SBI
system reset reason to "System failure", so add a parameter with the
poweroff/reboot reason to arch_specific_poweroff.
This means that panic=shutdown now attempts to use the ARM PSCI,
since 6a21fcec38 forgot to add PSCI support to `__shutdown`.
1.2 KiB
1.2 KiB