aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/riscv64/kernel/sbi.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/riscv64/kernel/sbi.h b/arch/riscv64/kernel/sbi.h
index d536f58..0f3eba7 100644
--- a/arch/riscv64/kernel/sbi.h
+++ b/arch/riscv64/kernel/sbi.h
@@ -149,7 +149,14 @@ static inline struct sbiret sbi_hart_start(unsigned long hartid,
0, 0, 0);
}
+/** Hart start function ID. */
#define FID_HSM_STOP 1
+
+/**
+ * Stop current hart.
+ *
+ * @return SBI call return. \see sbiret.
+ */
static inline struct sbiret sbi_hart_stop()
{
return sbi_ecall(EID_HSM, FID_HSM_STOP, 0, 0, 0, 0, 0, 0);