From: Bo Gan <ganboing@gmail.com>
To: opensbi@lists.infradead.org
Cc: nick.hu@sifive.com, linmin@eswincomputing.com,
gaohan@iscas.ac.cn, me@ziyao.cc
Subject: [PATCH 1/2] include: utils/hsm: Add __noreturn attribute for sifive_cease
Date: Mon, 2 Mar 2026 00:40:28 -0800 [thread overview]
Message-ID: <20260302084029.428-2-ganboing@gmail.com> (raw)
In-Reply-To: <20260302084029.428-1-ganboing@gmail.com>
Decorate the sifive_cease to allow more compiler optimizations
Signed-off-by: Bo Gan <ganboing@gmail.com>
---
include/sbi_utils/hsm/fdt_hsm_sifive_inst.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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)
--
2.34.1
--
opensbi mailing list
opensbi@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/opensbi
next prev parent reply other threads:[~2026-03-02 8:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-02 8:40 Add eic770x_hsm and fix warm Bo Gan
2026-03-02 8:40 ` Bo Gan [this message]
2026-03-02 8:40 ` [PATCH 2/2] platform: generic: eswin: Add eic770x_hsm and fix warm reset issues Bo Gan
2026-03-04 7:52 ` Bo Gan
2026-04-06 11:05 ` Anup Patel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260302084029.428-2-ganboing@gmail.com \
--to=ganboing@gmail.com \
--cc=gaohan@iscas.ac.cn \
--cc=linmin@eswincomputing.com \
--cc=me@ziyao.cc \
--cc=nick.hu@sifive.com \
--cc=opensbi@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox