Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git] / include / asm-cris / ptrace.h
index 79045e3..1ec69a7 100644 (file)
@@ -3,8 +3,12 @@
 
 #include <asm/arch/ptrace.h>
 
+#ifdef __KERNEL__
 /* Arbitrarily choose the same ptrace numbers as used by the Sparc code. */
 #define PTRACE_GETREGS            12
 #define PTRACE_SETREGS            13
+#endif
+
+#define profile_pc(regs) instruction_pointer(regs)
 
 #endif /* _CRIS_PTRACE_H */