pub fn hart_stop() -> SbiRet
Expand description
Stop executing the calling hart in supervisor-mode.
This function requests the SBI implementation to stop executing the calling hart in supervisor-mode and return its ownership to the SBI implementation.
This call is not expected to return under normal conditions.
The sbi_hart_stop()
must be called with the supervisor-mode interrupts disabled.
§Return value
The possible return error codes returned in SbiRet.error
are shown in the table below:
Error code | Description |
---|---|
SbiRet::failed() | Failed to stop execution of the current hart |
This function is defined in RISC-V SBI Specification chapter 9.2.