Skip to content

Commit

Permalink
fix(riscv/sbi): return hypcall error as sbi value
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Martins <[email protected]>
  • Loading branch information
josecm authored and DavidMCerdeira committed Oct 18, 2024
1 parent e09ddf3 commit 5eed180
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/arch/riscv/sbi.c
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,10 @@ static struct sbiret sbi_bao_handler(unsigned long fid)
{
struct sbiret ret;

ret.error = hypercall(fid);
// Any hypercall will always be successful from a purely SBI standpoint. A
// bao-specific hypercall code is returned as the value.
ret.error = SBI_SUCCESS;
ret.value = hypercall(fid);

return ret;
}
Expand Down

0 comments on commit 5eed180

Please sign in to comment.