diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-10-04 10:09:52 +0200 |
---|---|---|
committer | Leo Yu-Chi Liang <ycliang@andestech.com> | 2022-10-20 15:22:15 +0800 |
commit | 9487764e7e4f58a41fcfc4df7ae0db5fa4e4ffd8 (patch) | |
tree | b96cc8f93eb5ecb8c3ac8592dcd33c92437daf7c /cmd | |
parent | 3724ddf157aab3bd009c1da234b9a1af1621b544 (diff) | |
download | u-boot-9487764e7e4f58a41fcfc4df7ae0db5fa4e4ffd8.zip u-boot-9487764e7e4f58a41fcfc4df7ae0db5fa4e4ffd8.tar.gz u-boot-9487764e7e4f58a41fcfc4df7ae0db5fa4e4ffd8.tar.bz2 |
cmd/sbi: format RustSBI version number
The SBI command can print out the version number of the SBI implementation.
Choose the correct output format for RustSBI.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Rick Chen <rick@andestech.com>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/riscv/sbi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/riscv/sbi.c b/cmd/riscv/sbi.c index 522f502..9bbe7d4 100644 --- a/cmd/riscv/sbi.c +++ b/cmd/riscv/sbi.c @@ -74,6 +74,7 @@ static int do_sbi(struct cmd_tbl *cmdtp, int flag, int argc, vers >> 16, vers & 0xffff); break; case 3: /* KVM */ + case 4: /* RustSBI */ printf("%ld.%ld.%ld", vers >> 16, (vers >> 8) & 0xff, |