diff options
Diffstat (limited to 'arch/blackfin/include/asm/ptrace.h')
-rw-r--r-- | arch/blackfin/include/asm/ptrace.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/blackfin/include/asm/ptrace.h b/arch/blackfin/include/asm/ptrace.h index 1066d63e62b5..7854d4367c15 100644 --- a/arch/blackfin/include/asm/ptrace.h +++ b/arch/blackfin/include/asm/ptrace.h | |||
@@ -102,9 +102,6 @@ struct pt_regs { | |||
102 | /* user_mode returns true if only one bit is set in IPEND, other than the | 102 | /* user_mode returns true if only one bit is set in IPEND, other than the |
103 | master interrupt enable. */ | 103 | master interrupt enable. */ |
104 | #define user_mode(regs) (!(((regs)->ipend & ~0x10) & (((regs)->ipend & ~0x10) - 1))) | 104 | #define user_mode(regs) (!(((regs)->ipend & ~0x10) & (((regs)->ipend & ~0x10) - 1))) |
105 | #define instruction_pointer(regs) ((regs)->pc) | ||
106 | #define user_stack_pointer(regs) ((regs)->usp) | ||
107 | #define profile_pc(regs) instruction_pointer(regs) | ||
108 | extern void show_regs(struct pt_regs *); | 105 | extern void show_regs(struct pt_regs *); |
109 | 106 | ||
110 | #define arch_has_single_step() (1) | 107 | #define arch_has_single_step() (1) |
@@ -128,6 +125,8 @@ extern int is_user_addr_valid(struct task_struct *child, | |||
128 | ((unsigned long)task_stack_page(task) + \ | 125 | ((unsigned long)task_stack_page(task) + \ |
129 | (THREAD_SIZE - sizeof(struct pt_regs))) | 126 | (THREAD_SIZE - sizeof(struct pt_regs))) |
130 | 127 | ||
128 | #include <asm-generic/ptrace.h> | ||
129 | |||
131 | #endif /* __KERNEL__ */ | 130 | #endif /* __KERNEL__ */ |
132 | 131 | ||
133 | #endif /* __ASSEMBLY__ */ | 132 | #endif /* __ASSEMBLY__ */ |