From: Kautuk Consul <kconsul@ventanamicro.com>
To: opensbi@lists.infradead.org
Subject: [PATCH 1/2] include: types: add __noinline macro
Date: Thu, 8 Sep 2022 14:12:38 +0530 [thread overview]
Message-ID: <20220908084239.3205866-2-kconsul@ventanamicro.com> (raw)
In-Reply-To: <20220908084239.3205866-1-kconsul@ventanamicro.com>
Add noinline macro to sbi_types.h similar to the Linux kernel.
Signed-off-by: Kautuk Consul <kconsul@ventanamicro.com>
---
include/sbi/sbi_types.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/sbi/sbi_types.h b/include/sbi/sbi_types.h
index 7fb1af7..b1efed7 100644
--- a/include/sbi/sbi_types.h
+++ b/include/sbi/sbi_types.h
@@ -64,6 +64,7 @@ typedef unsigned long physical_size_t;
#define __packed __attribute__((packed))
#define __noreturn __attribute__((noreturn))
#define __aligned(x) __attribute__((aligned(x)))
+#define __noinline __attribute__((__noinline__))
#define likely(x) __builtin_expect((x), 1)
#define unlikely(x) __builtin_expect((x), 0)
--
2.34.1
next prev parent reply other threads:[~2022-09-08 8:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-08 8:42 [PATCH 0/2] Add semihosting support in opensbi Kautuk Consul
2022-09-08 8:42 ` Kautuk Consul [this message]
2022-09-08 8:42 ` [PATCH 2/2] lib: utils/serial: add semihosting support Kautuk Consul
2022-09-08 11:18 ` Jessica Clarke
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=20220908084239.3205866-2-kconsul@ventanamicro.com \
--to=kconsul@ventanamicro.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.