aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/net/bpf_jit_comp.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/net/bpf_jit_comp.c')
-rw-r--r--arch/powerpc/net/bpf_jit_comp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/net/bpf_jit_comp.c b/arch/powerpc/net/bpf_jit_comp.c
index 2dc8b1484845..dd1130642d07 100644
--- a/arch/powerpc/net/bpf_jit_comp.c
+++ b/arch/powerpc/net/bpf_jit_comp.c
@@ -39,7 +39,7 @@ static void bpf_jit_build_prologue(struct sk_filter *fp, u32 *image,
39 /* Make stackframe */ 39 /* Make stackframe */
40 if (ctx->seen & SEEN_DATAREF) { 40 if (ctx->seen & SEEN_DATAREF) {
41 /* If we call any helpers (for loads), save LR */ 41 /* If we call any helpers (for loads), save LR */
42 EMIT(PPC_INST_MFLR | __PPC_RT(0)); 42 EMIT(PPC_INST_MFLR | __PPC_RT(R0));
43 PPC_STD(0, 1, 16); 43 PPC_STD(0, 1, 16);
44 44
45 /* Back up non-volatile regs. */ 45 /* Back up non-volatile regs. */
@@ -56,7 +56,7 @@ static void bpf_jit_build_prologue(struct sk_filter *fp, u32 *image,
56 PPC_STD(i, 1, -(8*(32-i))); 56 PPC_STD(i, 1, -(8*(32-i)));
57 } 57 }
58 } 58 }
59 EMIT(PPC_INST_STDU | __PPC_RS(1) | __PPC_RA(1) | 59 EMIT(PPC_INST_STDU | __PPC_RS(R1) | __PPC_RA(R1) |
60 (-BPF_PPC_STACKFRAME & 0xfffc)); 60 (-BPF_PPC_STACKFRAME & 0xfffc));
61 } 61 }
62 62