From 9c18c2c61073cdd9a0f2e731dc8e2b2aa38ffb3f Mon Sep 17 00:00:00 2001 From: Abner Chang Date: Sat, 29 Jun 2019 19:40:47 +0530 Subject: [PATCH] include: Add firmware context to sbi_platform Add firmware context field struct sbi_platform to carry firmware specific information. Signed-off-by: Abner Chang Acked-by: Anup Patel --- include/sbi/sbi_platform.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/sbi/sbi_platform.h b/include/sbi/sbi_platform.h index 43993785..e3377b49 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 */