aboutsummaryrefslogtreecommitdiffstats
path: root/include
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 /include
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 'include')
-rw-r--r--include/asm-x86/kprobes.h2
-rw-r--r--include/asm-x86/processor.h2
-rw-r--r--include/asm-x86/processor_32.h1
-rw-r--r--include/asm-x86/processor_64.h11
4 files changed, 3 insertions, 13 deletions
diff --git a/include/asm-x86/kprobes.h b/include/asm-x86/kprobes.h
index 6e6371a856e7..143476a3cb52 100644
--- a/include/asm-x86/kprobes.h
+++ b/include/asm-x86/kprobes.h
@@ -88,7 +88,7 @@ struct kprobe_ctlblk {
88 */ 88 */
89static inline void restore_interrupts(struct pt_regs *regs) 89static inline void restore_interrupts(struct pt_regs *regs)
90{ 90{
91 if (regs->flags & IF_MASK) 91 if (regs->flags & X86_EFLAGS_IF)
92 local_irq_enable(); 92 local_irq_enable();
93} 93}
94 94
diff --git a/include/asm-x86/processor.h b/include/asm-x86/processor.h
index dea81b70895d..e8dd394c9f46 100644
--- a/include/asm-x86/processor.h
+++ b/include/asm-x86/processor.h
@@ -1,6 +1,8 @@
1#ifndef __ASM_X86_PROCESSOR_H 1#ifndef __ASM_X86_PROCESSOR_H
2#define __ASM_X86_PROCESSOR_H 2#define __ASM_X86_PROCESSOR_H
3 3
4#include <asm/processor-flags.h>
5
4static inline void native_cpuid(unsigned int *eax, unsigned int *ebx, 6static inline void native_cpuid(unsigned int *eax, unsigned int *ebx,
5 unsigned int *ecx, unsigned int *edx) 7 unsigned int *ecx, unsigned int *edx)
6{ 8{
diff --git a/include/asm-x86/processor_32.h b/include/asm-x86/processor_32.h
index 76cada930d22..b9dbe4668e75 100644
--- a/include/asm-x86/processor_32.h
+++ b/include/asm-x86/processor_32.h
@@ -19,7 +19,6 @@
19#include <asm/percpu.h> 19#include <asm/percpu.h>
20#include <linux/cpumask.h> 20#include <linux/cpumask.h>
21#include <linux/init.h> 21#include <linux/init.h>
22#include <asm/processor-flags.h>
23#include <asm/desc_defs.h> 22#include <asm/desc_defs.h>
24 23
25static inline int desc_empty(const void *ptr) 24static inline int desc_empty(const void *ptr)
diff --git a/include/asm-x86/processor_64.h b/include/asm-x86/processor_64.h
index a0a9e5515097..c49716a76644 100644
--- a/include/asm-x86/processor_64.h
+++ b/include/asm-x86/processor_64.h
@@ -18,19 +18,8 @@
18#include <asm/percpu.h> 18#include <asm/percpu.h>
19#include <linux/personality.h> 19#include <linux/personality.h>
20#include <linux/cpumask.h> 20#include <linux/cpumask.h>
21#include <asm/processor-flags.h>
22#include <asm/desc_defs.h> 21#include <asm/desc_defs.h>
23 22
24#define TF_MASK 0x00000100
25#define IF_MASK 0x00000200
26#define IOPL_MASK 0x00003000
27#define NT_MASK 0x00004000
28#define VM_MASK 0x00020000
29#define AC_MASK 0x00040000
30#define VIF_MASK 0x00080000 /* virtual interrupt flag */
31#define VIP_MASK 0x00100000 /* virtual interrupt pending */
32#define ID_MASK 0x00200000
33
34static inline int desc_empty(const void *ptr) 23static inline int desc_empty(const void *ptr)
35{ 24{
36 const u32 *desc = ptr; 25 const u32 *desc = ptr;