Re: [PATCH] riscv: Improve sbi_ecall() code generation by reordering arguments
From: Alexandre Ghiti
Date: Sun Mar 24 2024 - 14:20:16 EST
Hi Qingfang,
On Sat, Mar 23, 2024 at 7:26 AM Qingfang Deng <dqfext@xxxxxxxxx> wrote:
>
> Hi Alexandre,
>
> You can simply make sbi_ecall `__always_inline`, so the C function call
> overhead can be fully avoided.
I understand your point, though I don't think we need to mark
sbi_ecall() as inline, it's not in any hot path so it's not worth it.
This patch simply gets rid of a really useless overhead, but it does
not visibly accelerate anything.
I hope it makes sense,
Thanks,
Alex