aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/ia32
diff options
context:
space:
mode:
authorGlauber de Oliveira Costa <gcosta@redhat.com>2008-01-30 07:31:27 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:31:27 -0500
commit053de044411111da00272d1b4e174e7dd743f499 (patch)
treebe44ae9b0ed878df7b83daa39bb89e01f3fdbe73 /arch/x86/ia32
parent73018a66e70fa631935192e5ed6ef8fa2d20b22d (diff)
x86: get rid of _MASK flags
There's no need for the *_MASK flags (TF_MASK, IF_MASK, etc), found in processor.h (both _32 and _64). They have a one-to-one mapping with the EFLAGS value. This patch removes the definitions, and use the already existent X86_EFLAGS_ version when applicable. [ roland@redhat.com: KVM build fixes. ] Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/ia32')
-rw-r--r--arch/x86/ia32/ia32_signal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/ia32/ia32_signal.c b/arch/x86/ia32/ia32_signal.c
index d03d43f32f4c..0e24e3fda3d7 100644
--- a/arch/x86/ia32/ia32_signal.c
+++ b/arch/x86/ia32/ia32_signal.c
@@ -501,7 +501,7 @@ int ia32_setup_frame(int sig, struct k_sigaction *ka,
501 regs->ss = __USER32_DS; 501 regs->ss = __USER32_DS;
502 502
503 set_fs(USER_DS); 503 set_fs(USER_DS);
504 regs->flags &= ~TF_MASK; 504 regs->flags &= ~X86_EFLAGS_TF;
505 if (test_thread_flag(TIF_SINGLESTEP)) 505 if (test_thread_flag(TIF_SINGLESTEP))
506 ptrace_notify(SIGTRAP); 506 ptrace_notify(SIGTRAP);
507 507
@@ -601,7 +601,7 @@ int ia32_setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
601 regs->ss = __USER32_DS; 601 regs->ss = __USER32_DS;
602 602
603 set_fs(USER_DS); 603 set_fs(USER_DS);
604 regs->flags &= ~TF_MASK; 604 regs->flags &= ~X86_EFLAGS_TF;
605 if (test_thread_flag(TIF_SINGLESTEP)) 605 if (test_thread_flag(TIF_SINGLESTEP))
606 ptrace_notify(SIGTRAP); 606 ptrace_notify(SIGTRAP);
607 607