|
@@ -10,7 +10,7 @@ const FUNCTION_HSM_HART_SUSPEND: u32 = 0x3;
|
|
|
pub fn handle_ecall_hsm(function: u32, param0: usize, param1: usize, param2: usize) -> SbiRet {
|
|
|
match function {
|
|
|
FUNCTION_HSM_HART_START => hart_start(param0, param1, param2),
|
|
|
- FUNCTION_HSM_HART_STOP => hart_stop(param0),
|
|
|
+ FUNCTION_HSM_HART_STOP => hart_stop(),
|
|
|
FUNCTION_HSM_HART_GET_STATUS => hart_get_status(param0),
|
|
|
FUNCTION_HSM_HART_SUSPEND => hart_suspend(param0, param1, param2),
|
|
|
_ => SbiRet::not_supported(),
|
|
@@ -23,8 +23,8 @@ fn hart_start(hartid: usize, start_addr: usize, opaque: usize) -> SbiRet {
|
|
|
}
|
|
|
|
|
|
#[inline]
|
|
|
-fn hart_stop(hartid: usize) -> SbiRet {
|
|
|
- crate::hsm::hart_stop(hartid)
|
|
|
+fn hart_stop() -> SbiRet {
|
|
|
+ crate::hsm::hart_stop()
|
|
|
}
|
|
|
|
|
|
#[inline]
|