aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/asm-x86/ptrace.h43
1 files changed, 16 insertions, 27 deletions
diff --git a/include/asm-x86/ptrace.h b/include/asm-x86/ptrace.h
index 0ad9a2b7f8c0..79d5b8fcd7b1 100644
--- a/include/asm-x86/ptrace.h
+++ b/include/asm-x86/ptrace.h
@@ -7,17 +7,6 @@
7 7
8#ifndef __ASSEMBLY__ 8#ifndef __ASSEMBLY__
9 9
10#ifdef __KERNEL__
11
12/* the DS BTS struct is used for ptrace as well */
13#include <asm/ds.h>
14
15struct task_struct;
16extern void ptrace_bts_take_timestamp(struct task_struct *, enum bts_qualifier);
17
18#endif /* __KERNEL__ */
19
20
21#ifdef __i386__ 10#ifdef __i386__
22/* this struct defines the way the registers are stored on the 11/* this struct defines the way the registers are stored on the
23 stack during a system call. */ 12 stack during a system call. */
@@ -69,16 +58,6 @@ struct pt_regs {
69#include <asm/vm86.h> 58#include <asm/vm86.h>
70#include <asm/segment.h> 59#include <asm/segment.h>
71 60
72struct task_struct;
73
74extern unsigned long
75convert_ip_to_linear(struct task_struct *child, struct pt_regs *regs);
76
77extern void send_sigtrap(struct task_struct *tsk, struct pt_regs *regs, int error_code);
78
79#define regs_return_value(regs) ((regs)->ax)
80
81extern unsigned long profile_pc(struct pt_regs *regs);
82#endif /* __KERNEL__ */ 61#endif /* __KERNEL__ */
83 62
84#else /* __i386__ */ 63#else /* __i386__ */
@@ -143,20 +122,30 @@ struct pt_regs {
143/* top of stack page */ 122/* top of stack page */
144}; 123};
145 124
146#define regs_return_value(regs) ((regs)->ax) 125#endif /* __KERNEL__ */
126#endif /* !__i386__ */
147 127
148extern unsigned long profile_pc(struct pt_regs *regs); 128#ifdef __KERNEL__
149void signal_fault(struct pt_regs *regs, void __user *frame, char *where); 129
130/* the DS BTS struct is used for ptrace as well */
131#include <asm/ds.h>
150 132
151struct task_struct; 133struct task_struct;
152 134
135extern void ptrace_bts_take_timestamp(struct task_struct *, enum bts_qualifier);
136
137extern unsigned long profile_pc(struct pt_regs *regs);
138
153extern unsigned long 139extern unsigned long
154convert_ip_to_linear(struct task_struct *child, struct pt_regs *regs); 140convert_ip_to_linear(struct task_struct *child, struct pt_regs *regs);
155 141
156#endif /* __KERNEL__ */ 142#ifdef CONFIG_X86_32
157#endif /* !__i386__ */ 143extern void send_sigtrap(struct task_struct *tsk, struct pt_regs *regs, int error_code);
144#else
145void signal_fault(struct pt_regs *regs, void __user *frame, char *where);
146#endif
158 147
159#ifdef __KERNEL__ 148#define regs_return_value(regs) ((regs)->ax)
160 149
161/* 150/*
162 * user_mode_vm(regs) determines whether a register set came from user mode. 151 * user_mode_vm(regs) determines whether a register set came from user mode.