mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-06-17 16:41:19 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user