[RFC PATCH 1/1] BPF JIT for PPC64

Matt Evans matt at ozlabs.org
Mon Jul 11 16:27:27 EST 2011


On 25/06/11 17:33, Andreas Schwab wrote:
> Matt Evans <matt at ozlabs.org> 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


More information about the Linuxppc-dev mailing list