diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-01-30 07:33:12 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:33:12 -0500 |
commit | f2857ce92023409df1544737d5b3499b4630a183 (patch) | |
tree | df2c5bd9ce155950c0f48c1126b2fdf2db4b64d4 /include/asm-x86/ptrace.h | |
parent | 37cd9cf3dafed82f7cf905785883300f6ff7c818 (diff) |
x86: remove last user of get_segment_eip
is_prefetch was the last user of get_segment_eip and only on
X86_32. This function returned the faulting instruction's
address and set the upper segment limit.
Instead, use the convert_ip_to_linear helper and rely on
probe_kernel_address to do the segment checks which was
already done everywhere the segment limit was being checked
on X86_32.
Remove get_segment_eip as well.
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-x86/ptrace.h')
-rw-r--r-- | include/asm-x86/ptrace.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/asm-x86/ptrace.h b/include/asm-x86/ptrace.h index 35c103714906..ee4b595e1ccc 100644 --- a/include/asm-x86/ptrace.h +++ b/include/asm-x86/ptrace.h | |||
@@ -70,6 +70,10 @@ struct pt_regs { | |||
70 | #include <asm/segment.h> | 70 | #include <asm/segment.h> |
71 | 71 | ||
72 | struct task_struct; | 72 | struct task_struct; |
73 | |||
74 | extern unsigned long | ||
75 | convert_ip_to_linear(struct task_struct *child, struct pt_regs *regs); | ||
76 | |||
73 | extern void send_sigtrap(struct task_struct *tsk, struct pt_regs *regs, int error_code); | 77 | extern void send_sigtrap(struct task_struct *tsk, struct pt_regs *regs, int error_code); |
74 | 78 | ||
75 | /* | 79 | /* |
@@ -184,8 +188,6 @@ convert_ip_to_linear(struct task_struct *child, struct pt_regs *regs); | |||
184 | 188 | ||
185 | #ifdef __KERNEL__ | 189 | #ifdef __KERNEL__ |
186 | 190 | ||
187 | unsigned long get_segment_eip(struct pt_regs *regs, unsigned long *eip_limit); | ||
188 | |||
189 | /* | 191 | /* |
190 | * These are defined as per linux/ptrace.h, which see. | 192 | * These are defined as per linux/ptrace.h, which see. |
191 | */ | 193 | */ |