Browse Source

x86: fix typo in step.c

TIF_DEBUGCTLMSR has no meaning in the actual MSR...

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Jan Beulich 17 years ago
parent
commit
d032b31a3a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      arch/x86/kernel/step.c

+ 2 - 2
arch/x86/kernel/step.c

@@ -166,7 +166,7 @@ static void enable_step(struct task_struct *child, bool block)
 				  child->thread.debugctlmsr | DEBUGCTLMSR_BTF);
 				  child->thread.debugctlmsr | DEBUGCTLMSR_BTF);
 	} else {
 	} else {
 	    write_debugctlmsr(child,
 	    write_debugctlmsr(child,
-			      child->thread.debugctlmsr & ~TIF_DEBUGCTLMSR);
+			      child->thread.debugctlmsr & ~DEBUGCTLMSR_BTF);
 
 
 	    if (!child->thread.debugctlmsr)
 	    if (!child->thread.debugctlmsr)
 		    clear_tsk_thread_flag(child, TIF_DEBUGCTLMSR);
 		    clear_tsk_thread_flag(child, TIF_DEBUGCTLMSR);
@@ -189,7 +189,7 @@ void user_disable_single_step(struct task_struct *child)
 	 * Make sure block stepping (BTF) is disabled.
 	 * Make sure block stepping (BTF) is disabled.
 	 */
 	 */
 	write_debugctlmsr(child,
 	write_debugctlmsr(child,
-			  child->thread.debugctlmsr & ~TIF_DEBUGCTLMSR);
+			  child->thread.debugctlmsr & ~DEBUGCTLMSR_BTF);
 
 
 	if (!child->thread.debugctlmsr)
 	if (!child->thread.debugctlmsr)
 		clear_tsk_thread_flag(child, TIF_DEBUGCTLMSR);
 		clear_tsk_thread_flag(child, TIF_DEBUGCTLMSR);