From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <4E1A97CF.80509@ozlabs.org> Date: Mon, 11 Jul 2011 16:27:27 +1000 From: Matt Evans MIME-Version: 1.0 To: Andreas Schwab Subject: Re: [RFC PATCH 1/1] BPF JIT for PPC64 References: <4E04288F.4090201@ozlabs.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Cc: netdev@vger.kernel.org, linuxppc-dev List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 25/06/11 17:33, Andreas Schwab wrote: > Matt Evans 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