diff options
author | Atish Patra <atish.patra@wdc.com> | 2021-11-18 09:39:10 +0100 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2022-01-06 10:38:29 +0100 |
commit | c62a76859723fb732bfeda847f22192e24e121a7 (patch) | |
tree | 6120e622a030b8f0f958373b4d3fd0e2f6369ac1 /arch/riscv/include/asm/sbi.h | |
parent | RISC-V: KVM: Reorganize SBI code by moving SBI v0.1 to its own file (diff) | |
download | linux-c62a76859723fb732bfeda847f22192e24e121a7.tar.xz linux-c62a76859723fb732bfeda847f22192e24e121a7.zip |
RISC-V: KVM: Add SBI v0.2 base extension
SBI v0.2 base extension defined to allow backward compatibility and
probing of future extensions. This is also the only mandatory SBI
extension that must be implemented by SBI implementors.
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Atish Patra <atishp@rivosinc.com>
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'arch/riscv/include/asm/sbi.h')
-rw-r--r-- | arch/riscv/include/asm/sbi.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/sbi.h b/arch/riscv/include/asm/sbi.h index 0d42693cb65e..9e4c79fd49d7 100644 --- a/arch/riscv/include/asm/sbi.h +++ b/arch/riscv/include/asm/sbi.h @@ -27,6 +27,14 @@ enum sbi_ext_id { SBI_EXT_IPI = 0x735049, SBI_EXT_RFENCE = 0x52464E43, SBI_EXT_HSM = 0x48534D, + + /* Experimentals extensions must lie within this range */ + SBI_EXT_EXPERIMENTAL_START = 0x08000000, + SBI_EXT_EXPERIMENTAL_END = 0x08FFFFFF, + + /* Vendor extensions must lie within this range */ + SBI_EXT_VENDOR_START = 0x09000000, + SBI_EXT_VENDOR_END = 0x09FFFFFF, }; enum sbi_ext_base_fid { |