diff options
Diffstat (limited to 'arch/x86/kernel/traps.c')
-rw-r--r-- | arch/x86/kernel/traps.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/x86/kernel/traps.c b/arch/x86/kernel/traps.c index 1168e4454188..e3da5d726a37 100644 --- a/arch/x86/kernel/traps.c +++ b/arch/x86/kernel/traps.c | |||
@@ -543,11 +543,6 @@ dotraplinkage void __kprobes do_debug(struct pt_regs *regs, long error_code) | |||
543 | 543 | ||
544 | /* DR6 may or may not be cleared by the CPU */ | 544 | /* DR6 may or may not be cleared by the CPU */ |
545 | set_debugreg(0, 6); | 545 | set_debugreg(0, 6); |
546 | /* | ||
547 | * The processor cleared BTF, so don't mark that we need it set. | ||
548 | */ | ||
549 | clear_tsk_thread_flag(tsk, TIF_DEBUGCTLMSR); | ||
550 | tsk->thread.debugctlmsr = 0; | ||
551 | 546 | ||
552 | /* Store the virtualized DR6 value */ | 547 | /* Store the virtualized DR6 value */ |
553 | tsk->thread.debugreg6 = dr6; | 548 | tsk->thread.debugreg6 = dr6; |