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:
parent
fbdb1a3d61
commit
cac7dc8d71
2 changed files with 23 additions and 0 deletions
|
@ -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 doesn’t return irrespective whether it succeeds or fails.
|
||||
[[noreturn]] void shutdown();
|
||||
|
||||
}
|
||||
|
||||
// Chapter 6. Timer Extension (EID #0x54494D45 "TIME")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue