include: utils/hsm: Add __noreturn attribute for sifive_cease

Decorate the sifive_cease to allow more compiler optimizations

Signed-off-by: Bo Gan <ganboing@gmail.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/r/20260605075708.96-2-ganboing@gmail.com
Signed-off-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
Bo Gan
2026-06-05 00:57:07 -07:00
committed by Anup Patel
parent dcb5179b50
commit 0f42eff6ea
+2 -1
View File
@@ -7,9 +7,10 @@
#ifndef __FDT_HSM_SIFIVE_INST_H__
#define __FDT_HSM_SIFIVE_INST_H__
static inline void sifive_cease(void)
static inline void __noreturn sifive_cease(void)
{
__asm__ __volatile__(".word 0x30500073" ::: "memory");
__builtin_unreachable();
}
static inline void sifive_cflush(void)