mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
x86: x86-64 ptrace debugreg cleanup
This cleans up the 64-bit ptrace code to separate the guts of the debug register access from the implementation of PTRACE_PEEKUSR and PTRACE_POKEUSR. The new functions ptrace_[gs]et_debugreg are made global so that the ia32 code can later be changed to call them too. Signed-off-by: Roland McGrath <roland@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
parent
e4aed6cc45
commit
962ff3804d
2 changed files with 69 additions and 74 deletions
|
|
@ -110,6 +110,9 @@ void signal_fault(struct pt_regs *regs, void __user *frame, char *where);
|
|||
|
||||
struct task_struct;
|
||||
|
||||
extern unsigned long ptrace_get_debugreg(struct task_struct *child, int n);
|
||||
extern int ptrace_set_debugreg(struct task_struct *child, int n, unsigned long);
|
||||
|
||||
extern unsigned long
|
||||
convert_rip_to_linear(struct task_struct *child, struct pt_regs *regs);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue