Function sbi_rt::get_spec_version
source · pub fn get_spec_version() -> Version
Expand description
Return the current SBI specification version.
The minor number of the SBI specification is encoded in the low 24 bits, with the major number encoded in the next 7 bits. Bit 31 must be zero and is reserved for future expansion.
This function is defined in RISC-V SBI Specification chapter 4.1. According to the introduction of chapter 4, all base extension functions must success and return no error code.