Subject: Re: [RFC PATCH 1/1] BPF JIT for PPC64

From: Matt Evans <[email-masked]>
Date: Mon, 11 Jul 2011 16:27:27 +1000

On 25/06/11 17:33, Andreas Schwab wrote:
> Matt Evans <[email-masked]> writes:
> 
>> +	stdu	r1, -128(r1);					\
> 
>> +	addi	r5, r1, 128+BPF_PPC_STACK_BASIC+(2*8);		\
> 
>> +	addi	r1, r1, 128;					\
> 
>> +					PPC_STD(r_M + i, 1, -128 + (8*i));
> 
>> +					PPC_LD(r_M + i, 1, -128 + (8*i));
> 
> s/128/BPF_PPC_STACK_SAVE/?

Actually, that's a different 128, but that nicely illustrates that I should've
#defined something more recognisable :-) The second set, with -128, is actually
in the save area for non-volatile regs, whereas the first is just a stackframe
size.

Cheers,

Matt