Files
serenity/Kernel/Library/Panic.cpp
Sönke Holz 936500c0dd Kernel: Use arch_specific_poweroff for panic=shutdown
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`.
2025-03-30 16:24:23 +02:00

1.2 KiB