public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86: vm86 - hide X86_VM_MASK from userland programs v2
@ 2008-04-24 14:41 Cyrill Gorcunov
  2008-04-24 18:06 ` H. Peter Anvin
  0 siblings, 1 reply; 11+ messages in thread
From: Cyrill Gorcunov @ 2008-04-24 14:41 UTC (permalink / raw)
  To: H. Peter Anvin, Ingo Molnar, David Woodhouse; +Cc: LKML

X86_VM_MASK is a kernel specific flag so lets hide it from userland programs
 
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
---

Index: linux-2.6.git/include/asm-x86/vm86.h
===================================================================
--- linux-2.6.git.orig/include/asm-x86/vm86.h	2008-04-23 22:38:58.000000000 +0400
+++ linux-2.6.git/include/asm-x86/vm86.h	2008-04-24 18:37:13.000000000 +0400
@@ -14,12 +14,6 @@
 
 #include <asm/processor-flags.h>
 
-#ifdef CONFIG_VM86
-#define X86_VM_MASK	X86_EFLAGS_VM
-#else
-#define X86_VM_MASK	0 /* No VM86 support */
-#endif
-
 #define BIOSSEG		0x0f000
 
 #define CPU_086		0
@@ -189,6 +183,8 @@ struct kernel_vm86_struct {
 
 #ifdef CONFIG_VM86
 
+#define X86_VM_MASK	X86_EFLAGS_VM
+
 void handle_vm86_fault(struct kernel_vm86_regs *, long);
 int handle_vm86_trap(struct kernel_vm86_regs *, long, int);
 struct pt_regs *save_v86_state(struct kernel_vm86_regs *);
@@ -198,6 +194,8 @@ void release_vm86_irqs(struct task_struc
 
 #else
 
+#define X86_VM_MASK	0 /* No VM86 support */
+
 #define handle_vm86_fault(a, b)
 #define release_vm86_irqs(a)
 

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-04-29 17:45 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-24 14:41 [PATCH] x86: vm86 - hide X86_VM_MASK from userland programs v2 Cyrill Gorcunov
2008-04-24 18:06 ` H. Peter Anvin
2008-04-28 18:23   ` Ingo Molnar
2008-04-28 19:20     ` Ingo Molnar
2008-04-29 13:36       ` Cyrill Gorcunov
2008-04-29 15:29       ` Cyrill Gorcunov
2008-04-29 15:43         ` Cyrill Gorcunov
2008-04-29 15:46           ` H. Peter Anvin
2008-04-29 16:01             ` Cyrill Gorcunov
2008-04-29 16:08               ` Cyrill Gorcunov
2008-04-29 17:44             ` Cyrill Gorcunov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox