X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-ppc64%2Fptrace.h;h=2ec5d7bc43fc13993ba8549caecaef8a2af909ef;hb=9bf4aaab3e101692164d49b7ca357651eb691cb6;hp=c4e809d699900826c2f4159ed01644195bda910b;hpb=db216c3d5e4c040e557a50f8f5d35d5c415e8c1c;p=linux-2.6.git diff --git a/include/asm-ppc64/ptrace.h b/include/asm-ppc64/ptrace.h index c4e809d69..2ec5d7bc4 100644 --- a/include/asm-ppc64/ptrace.h +++ b/include/asm-ppc64/ptrace.h @@ -71,6 +71,18 @@ struct pt_regs32 { #define instruction_pointer(regs) ((regs)->nip) #define user_mode(regs) ((((regs)->msr) >> MSR_PR_LG) & 0x1) +#define force_successful_syscall_return() \ + (current_thread_info()->syscall_noerror = 1) + +/* + * We use the least-significant bit of the trap field to indicate + * whether we have saved the full set of registers, or only a + * partial set. A 1 there means the partial set. + */ +#define FULL_REGS(regs) (((regs)->trap & 1) == 0) +#define TRAP(regs) ((regs)->trap & ~0xF) +#define CHECK_FULL_REGS(regs) BUG_ON(regs->trap & 1) + /* * Offsets used by 'ptrace' system call interface. */