]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cmd: sbi: add Supervisor Software Events extension
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 17 Apr 2024 14:01:27 +0000 (16:01 +0200)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Wed, 1 May 2024 14:40:17 +0000 (22:40 +0800)
OpenSBI has implemented the Supervisor Software Events Extension.
Allow detecting it in the sbi command.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
arch/riscv/include/asm/sbi.h
cmd/riscv/sbi.c

index d1113f3d703c7d4932c9784431d249de7d334f85..ad32dedb5896cf97b7bbb25604323659f7cc2abe 100644 (file)
@@ -34,6 +34,7 @@ enum sbi_ext_id {
        SBI_EXT_NACL = 0x4E41434C,
        SBI_EXT_STA = 0x535441,
        SBI_EXT_DBTR = 0x44425452,
+       SBI_EXT_SSE = 0x535345,
 };
 
 enum sbi_ext_base_fid {
index bd9d9c4765da3275251c7360ec74a171b054e1b9..55507b0aa635577cf7ce049e41c6f6334ffe0624 100644 (file)
@@ -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,