diff options
author | Atish Patra <atish.patra@wdc.com> | 2020-02-12 04:32:38 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-02-24 15:41:47 +0300 |
commit | 5b4824082ff8826f77d6bc670e16068d0744ff7f (patch) | |
tree | c044271e32aef84c7fbac8b5bd762f7009d61eae /include/sbi/sbi_ecall_interface.h | |
parent | b677a9b8d641f1c16a4f8f52e00019a9bc747893 (diff) | |
download | opensbi-5b4824082ff8826f77d6bc670e16068d0744ff7f.tar.xz |
lib: Add possible hart status values
SBI HSM extension defines possible hart status values in the
specification.
Define all possible status values. Add a helper function to
convert hart state to status because hart states are internal
to OpenSBI only and may not match the status values defined in
the specification.
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'include/sbi/sbi_ecall_interface.h')
-rw-r--r-- | include/sbi/sbi_ecall_interface.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sbi/sbi_ecall_interface.h b/include/sbi/sbi_ecall_interface.h index 93c0747..ba88e8b 100644 --- a/include/sbi/sbi_ecall_interface.h +++ b/include/sbi/sbi_ecall_interface.h @@ -51,6 +51,11 @@ #define SBI_EXT_RFENCE_REMOTE_HFENCE_VVMA 0x5 #define SBI_EXT_RFENCE_REMOTE_HFENCE_VVMA_ASID 0x6 +#define SBI_HSM_HART_STATUS_STARTED 0x0 +#define SBI_HSM_HART_STATUS_STOPPED 0x1 +#define SBI_HSM_HART_STATUS_START_PENDING 0x2 +#define SBI_HSM_HART_STATUS_STOP_PENDING 0x3 + #define SBI_SPEC_VERSION_MAJOR_OFFSET 24 #define SBI_SPEC_VERSION_MAJOR_MASK 0x7f #define SBI_SPEC_VERSION_MINOR_MASK 0xffffff |