X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fasm-frv%2Fptrace.h;h=cf6934012b64dc70736e26073470e143b2ed11ab;hb=64c911a3f7c9864a4bbddbb77b722d5553ddcd32;hp=7ff525162a723b8a2549db3534289a355ed54df8;hpb=c80dc60b03d633047c7f96be87fd59cdcdbb929f;p=linux-2.6 diff --git a/include/asm-frv/ptrace.h b/include/asm-frv/ptrace.h index 7ff525162a..cf6934012b 100644 --- a/include/asm-frv/ptrace.h +++ b/include/asm-frv/ptrace.h @@ -12,8 +12,11 @@ #define _ASM_PTRACE_H #include +#ifdef __KERNEL__ +#include #define in_syscall(regs) (((regs)->tbr & TBR_TT) == TBR_TT_TRAP0) +#endif #define PT_PSR 0 @@ -59,6 +62,7 @@ #define PTRACE_GETFDPIC_EXEC 0 /* [addr] request the executable loadmap */ #define PTRACE_GETFDPIC_INTERP 1 /* [addr] request the interpreter loadmap */ +#ifdef __KERNEL__ #ifndef __ASSEMBLY__ /* @@ -73,6 +77,7 @@ register struct pt_regs *__frame asm("gr28"); extern unsigned long user_stack(const struct pt_regs *); extern void show_regs(struct pt_regs *); #define profile_pc(regs) ((regs)->pc) +#endif #endif /* !__ASSEMBLY__ */ #endif /* _ASM_PTRACE_H */