summaryrefslogtreecommitdiffstats
path: root/include/asm-cris/arch-v10/ptrace.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-cris/arch-v10/ptrace.h')
-rw-r--r--include/asm-cris/arch-v10/ptrace.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-cris/arch-v10/ptrace.h b/include/asm-cris/arch-v10/ptrace.h
index fb14c5ee37f..2f464eab3a5 100644
--- a/include/asm-cris/arch-v10/ptrace.h
+++ b/include/asm-cris/arch-v10/ptrace.h
@@ -106,10 +106,14 @@ struct switch_stack {
unsigned long return_ip; /* ip that _resume will return to */
};
+#ifdef __KERNEL__
+
/* bit 8 is user-mode flag */
#define user_mode(regs) (((regs)->dccr & 0x100) != 0)
#define instruction_pointer(regs) ((regs)->irp)
#define profile_pc(regs) instruction_pointer(regs)
extern void show_regs(struct pt_regs *);
+#endif /* __KERNEL__ */
+
#endif