diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2019-03-27 17:57:20 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2019-03-29 13:19:11 +0300 |
commit | 132f3e024b3c773000ef4dac3f6cae57eb335e1b (patch) | |
tree | 0ab5b55ffa38f5b92c112dff4d91f682fcfd9372 /include/sbi/sbi_scratch.h | |
parent | e921fc26911bd27cf715483b60c22920812aab21 (diff) | |
download | opensbi-132f3e024b3c773000ef4dac3f6cae57eb335e1b.tar.xz |
firmware: Introduce "options" in "struct sbi_scratch"
Introduce "options" in "struct sbi_scratch" and firmware can update
it based on optional compile time flags before calling sbi_init().
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/sbi/sbi_scratch.h')
-rw-r--r-- | include/sbi/sbi_scratch.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sbi/sbi_scratch.h b/include/sbi/sbi_scratch.h index 1534893..4cba233 100644 --- a/include/sbi/sbi_scratch.h +++ b/include/sbi/sbi_scratch.h @@ -30,6 +30,8 @@ #define SBI_SCRATCH_HARTID_TO_SCRATCH_OFFSET (7 * __SIZEOF_POINTER__) /** Offset of tmp0 member in sbi_scratch */ #define SBI_SCRATCH_TMP0_OFFSET (8 * __SIZEOF_POINTER__) +/** Offset of options member in sbi_scratch */ +#define SBI_SCRATCH_OPTIONS_OFFSET (9 * __SIZEOF_POINTER__) /** sbi_ipi_data is located behind sbi_scratch. This struct is not packed. */ /** Offset of ipi_type in sbi_ipi_data */ @@ -64,6 +66,8 @@ struct sbi_scratch { unsigned long hartid_to_scratch; /** Temporary storage */ unsigned long tmp0; + /** Options for OpenSBI library */ + unsigned long options; } __packed; /** Get pointer to sbi_scratch for current HART */ |