4 #include <linux/sched.h>
6 #include <linux/ptrace.h>
14 seg = regs->
cs & 0xffff;
15 if (v8086_mode(regs)) {
16 addr = (addr & 0xffff) + (seg << 4);
33 if (
unlikely((seg >> 3) >= child->
mm->context.size))
36 desc = child->
mm->context.ldt +
seg;
37 base = get_desc_base(desc);
57 for (i = 0; i < copied; i++) {
72 case 0xf0:
case 0xf2:
case 0xf3:
77 if (!user_64bit_mode(regs))
104 static int enable_single_step(
struct task_struct *child)
107 unsigned long oflags;
129 oflags = regs->
flags;
143 if (is_setting_trap_flag(child, regs)) {
162 unsigned long debugctl;
174 debugctl = get_debugctlmsr();
183 update_debugctlmsr(debugctl);
199 if (enable_single_step(child) && block)