Re: [PATCH] riscv, libbpf: use a0 for RC register

From: Björn Töpel
Date: Thu Jul 07 2022 - 04:54:03 EST


On Wed, 6 Jul 2022 at 16:03, Yixun Lan <dlan@xxxxxxxxxx> wrote:
>
> According to the RISC-V calling convention register usage here[1],
> a0 is used as return value register, so rename it to make it consistent
> with the spec.
>
> [1] section 18.2, table 18.2
> https://riscv.org/wp-content/uploads/2015/01/riscv-calling.pdf
>
> Fixes: 589fed479ba1 ("riscv, libbpf: Add RISC-V (RV64) support to bpf_tracing.h")
> Signed-off-by: Yixun Lan <dlan@xxxxxxxxxx>

Nice catch!

Acked-by: Björn Töpel <bjorn@xxxxxxxxxx>