X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-ppc64%2Fptrace.h;h=c96aad28fc081fc721d8c66fbca460864f1ea7b5;hb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;hp=2ec5d7bc43fc13993ba8549caecaef8a2af909ef;hpb=a2c21200f1c81b08cb55e417b68150bba439b646;p=linux-2.6.git diff --git a/include/asm-ppc64/ptrace.h b/include/asm-ppc64/ptrace.h index 2ec5d7bc4..c96aad28f 100644 --- a/include/asm-ppc64/ptrace.h +++ b/include/asm-ppc64/ptrace.h @@ -60,15 +60,21 @@ struct pt_regs32 { PPC_REG_32 result; /* Result of a system call */ }; +#define instruction_pointer(regs) ((regs)->nip) +#ifdef CONFIG_SMP +extern unsigned long profile_pc(struct pt_regs *regs); +#else +#define profile_pc(regs) instruction_pointer(regs) #endif +#endif /* __ASSEMBLY__ */ + #define STACK_FRAME_OVERHEAD 112 /* size of minimum stack frame */ /* Size of dummy stack frame allocated when calling signal handler. */ #define __SIGNAL_FRAMESIZE 128 #define __SIGNAL_FRAMESIZE32 64 -#define instruction_pointer(regs) ((regs)->nip) #define user_mode(regs) ((((regs)->msr) >> MSR_PR_LG) & 0x1) #define force_successful_syscall_return() \