summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbner Chang <abner.chang@hpe.com>2019-06-29 17:10:47 +0300
committerAnup Patel <anup@brainfault.org>2019-06-29 18:29:45 +0300
commit9c18c2c61073cdd9a0f2e731dc8e2b2aa38ffb3f (patch)
treefbf61c51e4d41606e84113a29a860e6339216808
parent08b196956d684678e930850bc1b54d602dfff555 (diff)
downloadopensbi-9c18c2c61073cdd9a0f2e731dc8e2b2aa38ffb3f.tar.xz
include: Add firmware context to sbi_platform
Add firmware context field struct sbi_platform to carry firmware specific information. Signed-off-by: Abner Chang <abner.chang@hpe.com> Acked-by: Anup Patel <anup.patel@wdc.com>
-rw-r--r--include/sbi/sbi_platform.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sbi/sbi_platform.h b/include/sbi/sbi_platform.h
index 4399378..e3377b4 100644
--- a/include/sbi/sbi_platform.h
+++ b/include/sbi/sbi_platform.h
@@ -32,6 +32,8 @@
#define SBI_PLATFORM_DISABLED_HART_OFFSET (0x58)
/** Offset of platform_ops_addr in struct sbi_platform */
#define SBI_PLATFORM_OPS_OFFSET (0x60)
+/** Offset of firmware_context in struct sbi_platform */
+#define SBI_PLATFORM_FIRMWARE_CONTEXT_OFFSET (0x60 + __SIZEOF_POINTER__)
#ifndef __ASSEMBLY__
@@ -136,6 +138,8 @@ struct sbi_platform {
u64 disabled_hart_mask;
/** Pointer to sbi platform operations */
unsigned long platform_ops_addr;
+ /** Pointer to system firmware specific context */
+ unsigned long firmware_context;
} __packed;
/** Get pointer to sbi_platform for sbi_scratch pointer */