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