Re: [PATCH v2 2/2] RISC-V: make use of variadic sbi_ecall
From: Paul Walmsley
Date: Tue Oct 06 2026 - 05:55:25 EST
On Thu, 19 Jun 2025, Radim Krčmář wrote:
> The new sbi_ecall doesn't have to list all 8 arguments anymore, so only
> pass the actual numbers of arguments for each SBI function.
>
> The remaining trailing 0 are intentional as they represent an argument.
>
> SBI 0.1 shouldn't be using the sbi_ecall, because it's only for 0.2+,
> but allow it by passing 0 is the reserved register.
>
> Signed-off-by: Radim Krčmář <rkrcmar@xxxxxxxxxxxxxxxx>
Thanks, queued for v7.4.
For everyone, not just Radim - probably it's worth looking through the
codebase to convert any SBI ecalls that were added over the past year that
weren't covered by this patch (e.g., the MPXY drivers) and to doublecheck
the overall argument counts.
- Paul