Skip to content

Commit

Permalink
Update yield ecall to OpenSBI ABI 0.3+
Browse files Browse the repository at this point in the history
  • Loading branch information
mpolitzer authored and alexmikhalevich committed Nov 20, 2023
1 parent 38dad70 commit c13d894
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/cartesi/libyield.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ int cartesi_yield(u64 cmd, u64 reason, u64 data, struct yield_request *rep)

tohost = _yield_pack(cmd, reason, data);
sbiret = sbi_ecall(SBI_YIELD, 0, tohost, 0, 0, 0, 0, 0);
/* since we are sbi 0.1 compatible, return value is in a0,
* so we use sbiret.error instead of sbiret.value */
*rep = _yield_unpack(sbiret.error);
*rep = _yield_unpack(sbiret.value);
return _yield_validate(rep->dev, rep->cmd, rep->reason);
}

0 comments on commit c13d894

Please sign in to comment.