Re: [PATCH 1/2] MIPS: eBPF: Always return sign extended 32b values

2019-02-19 Thread Paul Burton
Hello, Paul Burton wrote: > The function prototype used to call JITed eBPF code (ie. the type of the > struct bpf_prog bpf_func field) returns an unsigned int. The MIPS n64 > ABI that MIPS64 kernels target defines that 32 bit integers should > always be sign extended when passed in registers as ei

[PATCH 1/2] MIPS: eBPF: Always return sign extended 32b values

2019-02-15 Thread Paul Burton
The function prototype used to call JITed eBPF code (ie. the type of the struct bpf_prog bpf_func field) returns an unsigned int. The MIPS n64 ABI that MIPS64 kernels target defines that 32 bit integers should always be sign extended when passed in registers as either arguments or return values. T