mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:17:35 +00:00
Kernel: Add RPi Watchdog and use it for system shutdown
The Raspberry Pi hardware doesn't support a proper software-initiated shutdown, so this instead uses the watchdog to reboot to a special partition which the firmware interprets as an immediate halt on shutdown. When running under Qemu, this causes the emulator to exit.
This commit is contained in:
parent
555d301e3b
commit
d9c557d0b4
5 changed files with 80 additions and 0 deletions
|
@ -446,6 +446,7 @@ elseif("${SERENITY_ARCH}" STREQUAL "aarch64")
|
|||
Arch/aarch64/RPi/SDHostController.cpp
|
||||
Arch/aarch64/RPi/Timer.cpp
|
||||
Arch/aarch64/RPi/UART.cpp
|
||||
Arch/aarch64/RPi/Watchdog.cpp
|
||||
)
|
||||
set(SOURCES_RUNNING_WITHOUT_MMU
|
||||
Arch/aarch64/Exceptions.cpp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue