diff options
| author | Bo Gan <[email protected]> | 2026-06-05 00:57:07 -0700 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2026-06-15 10:38:09 +0530 |
| commit | 0f42eff6eaca80bd483292c8911292cbaa2341fd (patch) | |
| tree | ec900fcea23e95ef689bea3be08a837105050fcf | |
| parent | dcb5179b5050075b575369536b4f113f6d15e7b1 (diff) | |
include: utils/hsm: Add __noreturn attribute for sifive_cease
Decorate the sifive_cease to allow more compiler optimizations
Signed-off-by: Bo Gan <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Anup Patel <[email protected]>
| -rw-r--r-- | include/sbi_utils/hsm/fdt_hsm_sifive_inst.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sbi_utils/hsm/fdt_hsm_sifive_inst.h b/include/sbi_utils/hsm/fdt_hsm_sifive_inst.h index 7e9180ea..8de853ed 100644 --- a/include/sbi_utils/hsm/fdt_hsm_sifive_inst.h +++ b/include/sbi_utils/hsm/fdt_hsm_sifive_inst.h @@ -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) |
