Skip to content
Commit 1acf8f90 authored by Jerry Crunchtime's avatar Jerry Crunchtime Committed by Daniel Borkmann
Browse files

libbpf: Fix register in PT_REGS MIPS macros



The o32, n32 and n64 calling conventions require the return
value to be stored in $v0 which maps to $2 register, i.e.,
the register 2.

Fixes: c1932cdb ("bpf: Add MIPS support to samples/bpf.")
Signed-off-by: default avatarJerry Crunchtime <jerry.c.t@web.de>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Acked-by: default avatarAndrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/43707d31-0210-e8f0-9226-1af140907641@web.de
parent c64c9c28
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment