aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/ptrace.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-09-23 07:26:27 -0400
committerIngo Molnar <mingo@elte.hu>2008-09-23 07:26:27 -0400
commit101d5b713700b902b1c200cdd1925c3cb7d34567 (patch)
treea0d4b4140129ad2f24fd17b965dfcfbbb1ac01db /include/asm-x86/ptrace.h
parentcec5eb7be3a104fffd27ca967ee8e15a123050e2 (diff)
parente6babb6b7fed93c93f8fc5ef8ebd3a474fc2df3e (diff)
Merge branch 'x86/signal' into core/signal
Conflicts: arch/x86/kernel/cpu/feature_names.c arch/x86/kernel/setup.c drivers/pci/intel-iommu.c include/asm-x86/cpufeature.h Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/ptrace.h')
-rw-r--r--include/asm-x86/ptrace.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/include/asm-x86/ptrace.h b/include/asm-x86/ptrace.h
index 8a71db803da6..fad807769910 100644
--- a/include/asm-x86/ptrace.h
+++ b/include/asm-x86/ptrace.h
@@ -1,5 +1,5 @@
1#ifndef _ASM_X86_PTRACE_H 1#ifndef ASM_X86__PTRACE_H
2#define _ASM_X86_PTRACE_H 2#define ASM_X86__PTRACE_H
3 3
4#include <linux/compiler.h> /* For __user */ 4#include <linux/compiler.h> /* For __user */
5#include <asm/ptrace-abi.h> 5#include <asm/ptrace-abi.h>
@@ -144,10 +144,13 @@ convert_ip_to_linear(struct task_struct *child, struct pt_regs *regs);
144#ifdef CONFIG_X86_32 144#ifdef CONFIG_X86_32
145extern void send_sigtrap(struct task_struct *tsk, struct pt_regs *regs, 145extern void send_sigtrap(struct task_struct *tsk, struct pt_regs *regs,
146 int error_code); 146 int error_code);
147#else
148void signal_fault(struct pt_regs *regs, void __user *frame, char *where);
149#endif 147#endif
150 148
149void signal_fault(struct pt_regs *regs, void __user *frame, char *where);
150
151extern long syscall_trace_enter(struct pt_regs *);
152extern void syscall_trace_leave(struct pt_regs *);
153
151static inline unsigned long regs_return_value(struct pt_regs *regs) 154static inline unsigned long regs_return_value(struct pt_regs *regs)
152{ 155{
153 return regs->ax; 156 return regs->ax;
@@ -213,6 +216,11 @@ static inline unsigned long frame_pointer(struct pt_regs *regs)
213 return regs->bp; 216 return regs->bp;
214} 217}
215 218
219static inline unsigned long user_stack_pointer(struct pt_regs *regs)
220{
221 return regs->sp;
222}
223
216/* 224/*
217 * These are defined as per linux/ptrace.h, which see. 225 * These are defined as per linux/ptrace.h, which see.
218 */ 226 */
@@ -239,4 +247,4 @@ extern int do_set_thread_area(struct task_struct *p, int idx,
239 247
240#endif /* !__ASSEMBLY__ */ 248#endif /* !__ASSEMBLY__ */
241 249
242#endif 250#endif /* ASM_X86__PTRACE_H */