diff options
author | Atish Patra <atish.patra@wdc.com> | 2020-02-11 17:32:39 -0800 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-02-24 18:13:23 +0530 |
commit | e3f69fc1e934ce7815d9cde2d13dd2038a2894a6 (patch) | |
tree | 12a3d9846f29bcda30c622efa2368d70d51752f3 /lib/sbi/sbi_ecall.c | |
parent | 5b4824082ff8826f77d6bc670e16068d0744ff7f (diff) |
lib: Implement Hart State Management (HSM) SBI extension
This patch adds support HSM extension. The specification is available
at https://github.com/riscv/riscv-sbi-doc.
It allows to implement hart hotplug and fixed ordered hart booting in
supervisor.
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'lib/sbi/sbi_ecall.c')
-rw-r--r-- | lib/sbi/sbi_ecall.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/sbi/sbi_ecall.c b/lib/sbi/sbi_ecall.c index 82397c4..2383e4f 100644 --- a/lib/sbi/sbi_ecall.c +++ b/lib/sbi/sbi_ecall.c @@ -138,6 +138,9 @@ int sbi_ecall_init(void) ret = sbi_ecall_register_extension(&ecall_base); if (ret) return ret; + ret = sbi_ecall_register_extension(&ecall_hsm); + if (ret) + return ret; ret = sbi_ecall_register_extension(&ecall_legacy); if (ret) return ret; |