From 7a1c7ed1b1c30ba4c668194a955fb414e471bade Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 1 Jun 2024 16:42:55 +0300 Subject: add sleep syscall + Sets the current core to sleep --- arch/riscv64/kernel/power.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'arch/riscv64/kernel/power.c') 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; +} -- cgit v1.3