[PATCH 1/2] include: types: add __noinline macro

Kautuk Consul kconsul at ventanamicro.com
Thu Sep 8 01:42:38 PDT 2022


Add noinline macro to sbi_types.h similar to the Linux kernel.

Signed-off-by: Kautuk Consul <kconsul at 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




More information about the opensbi mailing list