Files
opensbi/include/sbi_utils/hsm/fdt_hsm_sifive_inst.h
T
Bo Gan 0f42eff6ea 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>
2026-06-15 10:38:09 +05:30

22 lines
398 B
C

/*
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2025 SiFive Inc.
*/
#ifndef __FDT_HSM_SIFIVE_INST_H__
#define __FDT_HSM_SIFIVE_INST_H__
static inline void __noreturn sifive_cease(void)
{
__asm__ __volatile__(".word 0x30500073" ::: "memory");
__builtin_unreachable();
}
static inline void sifive_cflush(void)
{
__asm__ __volatile__(".word 0xfc000073" ::: "memory");
}
#endif