Function sbi_rt::get_mimpid
source · pub fn get_mimpid() -> usize
Expand description
Return value of mimpid
register in the current environment.
This function returns a value that is legal for the mimpid
register,
and 0 is always a legal value for this register.
This function is defined in RISC-V SBI Specification chapter 4.7. According to the introduction of chapter 4, all base extension functions must success and return no error code.