lib: Add possible hart status values
authorAtish Patra <atish.patra@wdc.com>
Wed, 12 Feb 2020 01:32:38 +0000 (17:32 -0800)
committerAnup Patel <anup@brainfault.org>
Mon, 24 Feb 2020 12:41:47 +0000 (18:11 +0530)
commit5b4824082ff8826f77d6bc670e16068d0744ff7f
treec044271e32aef84c7fbac8b5bd762f7009d61eae
parentb677a9b8d641f1c16a4f8f52e00019a9bc747893
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>
include/sbi/sbi_ecall_interface.h
include/sbi/sbi_hsm.h
lib/sbi/sbi_hsm.c