mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-06-17 16:41:19 +01:00
0f42eff6ea
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>
22 lines
398 B
C
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
|