X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=arch%2Fpowerpc%2Flib%2Fsstep.c;h=7e8ded051b5b3fcc505c2ea8449422c6f42b6e61;hb=9783e1df7a6bd1e4dc5e2cafcdc29b65a47473d6;hp=c251d9936612916eb9f0329ebd4998d2be4ef1db;hpb=500156a0f0e81e24991f5f0db56e859db1fbdacf;p=linux-2.6 diff --git a/arch/powerpc/lib/sstep.c b/arch/powerpc/lib/sstep.c index c251d99366..7e8ded051b 100644 --- a/arch/powerpc/lib/sstep.c +++ b/arch/powerpc/lib/sstep.c @@ -9,8 +9,8 @@ * 2 of the License, or (at your option) any later version. */ #include +#include #include -#include #include #include @@ -26,7 +26,7 @@ extern char system_call_common[]; /* * Determine whether a conditional branch instruction would branch. */ -static int branch_taken(unsigned int instr, struct pt_regs *regs) +static int __kprobes branch_taken(unsigned int instr, struct pt_regs *regs) { unsigned int bo = (instr >> 21) & 0x1f; unsigned int bi; @@ -52,7 +52,7 @@ static int branch_taken(unsigned int instr, struct pt_regs *regs) * or -1 if the instruction is one that should not be stepped, * such as an rfid, or a mtmsrd that would clear MSR_RI. */ -int emulate_step(struct pt_regs *regs, unsigned int instr) +int __kprobes emulate_step(struct pt_regs *regs, unsigned int instr) { unsigned int opcode, rd; unsigned long int imm;