From c57c187bd44a4a3939ea711dc86b9cef775be3f4 Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Wed, 17 Apr 2024 16:01:27 +0200 Subject: cmd: sbi: add Supervisor Software Events extension OpenSBI has implemented the Supervisor Software Events Extension. Allow detecting it in the sbi command. Signed-off-by: Heinrich Schuchardt Reviewed-by: Leo Yu-Chi Liang --- cmd/riscv/sbi.c | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd') diff --git a/cmd/riscv/sbi.c b/cmd/riscv/sbi.c index bd9d9c4..55507b0 100644 --- a/cmd/riscv/sbi.c +++ b/cmd/riscv/sbi.c @@ -54,6 +54,7 @@ static struct sbi_ext extensions[] = { { SBI_EXT_NACL, "Nested Acceleration Extension" }, { SBI_EXT_STA, "Steal-time Accounting Extension" }, { SBI_EXT_DBTR, "Debug Trigger Extension" }, + { SBI_EXT_SSE, "Supervisor Software Events" }, }; static int do_sbi(struct cmd_tbl *cmdtp, int flag, int argc, -- cgit v1.1 From b49861ab85909ce27ddc7b25f45b33b545048567 Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Wed, 17 Apr 2024 16:01:28 +0200 Subject: cmd: sbi: add coreboot and oreboot implementation IDs Let the sbi command detect the coreboot and oreboot SBI Implementation IDs defined in SBI specification v2.0. Signed-off-by: Heinrich Schuchardt Reviewed-by: Leo Yu-Chi Liang --- cmd/riscv/sbi.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cmd') diff --git a/cmd/riscv/sbi.c b/cmd/riscv/sbi.c index 55507b0..2d8ee7e 100644 --- a/cmd/riscv/sbi.c +++ b/cmd/riscv/sbi.c @@ -29,6 +29,8 @@ static struct sbi_imp implementations[] = { { 6, "Coffer" }, { 7, "Xen Project" }, { 8, "PolarFire Hart Software Services" }, + { 9, "coreboot" }, + { 10, "oreboot" }, }; static struct sbi_ext extensions[] = { -- cgit v1.1