aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/vm86.h
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2008-05-12 09:43:38 -0400
committerThomas Gleixner <tglx@linutronix.de>2008-05-25 02:58:31 -0400
commit9831bfb201a8e00415d0f9e5b5a50d902a90b2db (patch)
treeb183b4b36a1b09a5931f75a556a8a057c1ed4671 /include/asm-x86/vm86.h
parentebdd561a19d7917ac49fff9c355aa4833c504bf1 (diff)
x86 - hide X86_VM_MASK from userland programs v3
X86_VM_MASK is kernel specific flags so hide it from userland programs. It should be defined *before* ptrace.h inclusion because of circular link between these files Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-x86/vm86.h')
-rw-r--r--include/asm-x86/vm86.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/include/asm-x86/vm86.h b/include/asm-x86/vm86.h
index 074b357146df..cbf4a0effa75 100644
--- a/include/asm-x86/vm86.h
+++ b/include/asm-x86/vm86.h
@@ -14,12 +14,6 @@
14 14
15#include <asm/processor-flags.h> 15#include <asm/processor-flags.h>
16 16
17#ifdef CONFIG_VM86
18#define X86_VM_MASK X86_EFLAGS_VM
19#else
20#define X86_VM_MASK 0 /* No VM86 support */
21#endif
22
23#define BIOSSEG 0x0f000 17#define BIOSSEG 0x0f000
24 18
25#define CPU_086 0 19#define CPU_086 0
@@ -133,6 +127,13 @@ struct vm86plus_struct {
133}; 127};
134 128
135#ifdef __KERNEL__ 129#ifdef __KERNEL__
130
131#ifdef CONFIG_VM86
132#define X86_VM_MASK X86_EFLAGS_VM
133#else
134#define X86_VM_MASK 0 /* No VM86 support */
135#endif
136
136/* 137/*
137 * This is the (kernel) stack-layout when we have done a "SAVE_ALL" from vm86 138 * This is the (kernel) stack-layout when we have done a "SAVE_ALL" from vm86
138 * mode - the main change is that the old segment descriptors aren't 139 * mode - the main change is that the old segment descriptors aren't