diff options
Diffstat (limited to 'arch/x86/kernel/signal_32.c')
-rw-r--r-- | arch/x86/kernel/signal_32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/signal_32.c b/arch/x86/kernel/signal_32.c index aa1b6a0a22e4..f1b117930837 100644 --- a/arch/x86/kernel/signal_32.c +++ b/arch/x86/kernel/signal_32.c | |||
@@ -419,7 +419,7 @@ setup_frame(int sig, struct k_sigaction *ka, sigset_t *set, | |||
419 | * The tracer may want to single-step inside the | 419 | * The tracer may want to single-step inside the |
420 | * handler too. | 420 | * handler too. |
421 | */ | 421 | */ |
422 | regs->flags &= ~(TF_MASK | X86_EFLAGS_DF); | 422 | regs->flags &= ~(X86_EFLAGS_TF | X86_EFLAGS_DF); |
423 | if (test_thread_flag(TIF_SINGLESTEP)) | 423 | if (test_thread_flag(TIF_SINGLESTEP)) |
424 | ptrace_notify(SIGTRAP); | 424 | ptrace_notify(SIGTRAP); |
425 | 425 | ||
@@ -507,7 +507,7 @@ static int setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info, | |||
507 | * The tracer may want to single-step inside the | 507 | * The tracer may want to single-step inside the |
508 | * handler too. | 508 | * handler too. |
509 | */ | 509 | */ |
510 | regs->flags &= ~(TF_MASK | X86_EFLAGS_DF); | 510 | regs->flags &= ~(X86_EFLAGS_TF | X86_EFLAGS_DF); |
511 | if (test_thread_flag(TIF_SINGLESTEP)) | 511 | if (test_thread_flag(TIF_SINGLESTEP)) |
512 | ptrace_notify(SIGTRAP); | 512 | ptrace_notify(SIGTRAP); |
513 | 513 | ||