summaryrefslogtreecommitdiff
path: root/include/sbi/sbi_version.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sbi/sbi_version.h')
-rw-r--r--include/sbi/sbi_version.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sbi/sbi_version.h b/include/sbi/sbi_version.h
index 90020ac..d1c39b0 100644
--- a/include/sbi/sbi_version.h
+++ b/include/sbi/sbi_version.h
@@ -13,4 +13,12 @@
#define OPENSBI_VERSION_MAJOR 0
#define OPENSBI_VERSION_MINOR 3
+/**
+ * OpenSBI 32-bit version with:
+ * 1. upper 16-bits as major number
+ * 2. lower 16-bits as minor number
+ */
+#define OPENSBI_VERSION ((OPENSBI_VERSION_MAJOR << 16) | \
+ (OPENSBI_VERSION_MINOR))
+
#endif