From f1290ec93e5da4a748ca4758a00b580283e06596 Mon Sep 17 00:00:00 2001 From: Andi Kleen Date: Sat, 16 Apr 2005 15:24:59 -0700 Subject: [PATCH] x86_64: Use a common function to find code segment bases To avoid some code duplication. Signed-off-by: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- include/asm-x86_64/ptrace.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/asm-x86_64') diff --git a/include/asm-x86_64/ptrace.h b/include/asm-x86_64/ptrace.h index c7865cfedc1f..5bbc8d3141c8 100644 --- a/include/asm-x86_64/ptrace.h +++ b/include/asm-x86_64/ptrace.h @@ -86,6 +86,11 @@ struct pt_regs { extern unsigned long profile_pc(struct pt_regs *regs); void signal_fault(struct pt_regs *regs, void __user *frame, char *where); +struct task_struct; + +extern unsigned long +convert_rip_to_linear(struct task_struct *child, struct pt_regs *regs); + enum { EF_CF = 0x00000001, EF_PF = 0x00000004, -- cgit v1.2.2