x86: remove last user of get_segment_eip
commitf2857ce92023409df1544737d5b3499b4630a183
authorHarvey Harrison <harvey.harrison@gmail.com>
Wed, 30 Jan 2008 12:33:12 +0000 (30 13:33 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:33:12 +0000 (30 13:33 +0100)
treedf2c5bd9ce155950c0f48c1126b2fdf2db4b64d4
parent37cd9cf3dafed82f7cf905785883300f6ff7c818
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>
arch/x86/kernel/step.c
arch/x86/mm/fault_32.c
arch/x86/mm/fault_64.c
include/asm-x86/ptrace.h