diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-06-01 16:42:55 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-06-01 16:42:55 +0300 |
| commit | 7a1c7ed1b1c30ba4c668194a955fb414e471bade (patch) | |
| tree | 2f49f04e455f004af640918abfcd6f91ce6a1323 /arch/riscv64/kernel/power.c | |
| parent | e8f80bae97a835b6b256228d4bbeaf48ae16dcbb (diff) | |
| download | kmi-7a1c7ed1b1c30ba4c668194a955fb414e471bade.tar.gz kmi-7a1c7ed1b1c30ba4c668194a955fb414e471bade.zip | |
add sleep syscall
+ Sets the current core to sleep
Diffstat (limited to 'arch/riscv64/kernel/power.c')
| -rw-r--r-- | arch/riscv64/kernel/power.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/riscv64/kernel/power.c b/arch/riscv64/kernel/power.c index 49fc9c5..21e4957 100644 --- a/arch/riscv64/kernel/power.c +++ b/arch/riscv64/kernel/power.c @@ -49,3 +49,9 @@ stat_t poweroff(enum poweroff_type type) return ERR_INVAL; } + +stat_t sleep() +{ + sbi_hart_stop(); + return ERR_MISC; +} |
