summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2019-01-14 12:23:52 +0300
committerAnup Patel <anup@brainfault.org>2019-01-16 08:55:25 +0300
commit4485b5cba86a2488c326c0dee9a1fec2d788b6e8 (patch)
treea8b9dbb713c54d066bdb01aa427e13d45825c6ea /include
parent924a26d82fd948318619c6645865eaa0691640f9 (diff)
downloadopensbi-4485b5cba86a2488c326c0dee9a1fec2d788b6e8.tar.xz
include: Add __packed define for packed structures
This patch adds __packed define for specifying packed attribute of structures. Signed-off-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'include')
-rw-r--r--include/sbi/sbi_types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sbi/sbi_types.h b/include/sbi/sbi_types.h
index 136cd47..3993842 100644
--- a/include/sbi/sbi_types.h
+++ b/include/sbi/sbi_types.h
@@ -54,6 +54,7 @@ typedef unsigned long physical_size_t;
#define NULL ((void *)0)
+#define __packed __attribute__((packed))
#define __noreturn __attribute__((noreturn))
#endif