1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:37:45 +00:00

Kernel/riscv64: Add support for legacy "System Shutdown" SBI extension

This commit is contained in:
Sönke Holz 2024-01-04 18:16:55 +01:00 committed by Andrew Kaster
parent fbdb1a3d61
commit cac7dc8d71
2 changed files with 23 additions and 0 deletions

View file

@ -133,6 +133,11 @@ LegacySBIErrorOr<void> set_timer(u64 stime_value);
// Write data present in ch to debug console.
LegacySBIErrorOr<void> console_putchar(int ch);
// System Shutdown (EID #0x08)
// Puts all the harts to shutdown state from supervisor point of view.
// This SBI call doesnt return irrespective whether it succeeds or fails.
[[noreturn]] void shutdown();
}
// Chapter 6. Timer Extension (EID #0x54494D45 "TIME")