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 v2 1/2] include: utils/hsm: Add __noreturn attribute for sifive_cease
Date: Fri, 5 Jun 2026 00:57:07 -0700 [thread overview]
Message-ID: <20260605075708.96-2-ganboing@gmail.com> (raw)
In-Reply-To: <20260605075708.96-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-06-05 7:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-05 7:57 [PATCH v2 0/2] Fix eic770x warm reset Bo Gan
2026-06-05 7:57 ` Bo Gan [this message]
2026-06-05 7:57 ` [PATCH v2 2/2] platform: generic: eswin: Add eic770x_hsm and fix warm reset issues Bo Gan
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=20260605075708.96-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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.