Commit Graph

4 Commits

Author SHA1 Message Date
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
Sönke Holz
e4244f7469 Kernel/riscv64: Implement support for "panic=shutdown" cmdline option 2024-01-12 16:25:46 -07:00
Liav A
8f21420a1d Kernel: Move all boot-related code to the new Boot subdirectory 2023-06-04 21:32:34 +02:00
Liav A
7c0540a229 Everywhere: Move global Kernel pattern code to Kernel/Library directory
This has KString, KBuffer, DoubleBuffer, KBufferBuilder, IOWindow,
UserOrKernelBuffer and ScopedCritical classes being moved to the
Kernel/Library subdirectory.

Also, move the panic and assertions handling code to that directory.
2023-06-04 21:32:34 +02:00