public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Cyrill Gorcunov <gorcunov@gmail.com>
To: "H. Peter Anvin" <hpa@zytor.com>, Ingo Molnar <mingo@elte.hu>,
	David Woodhouse <dwmw2@infradead.org>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: [PATCH] x86: vm86 - hide X86_VM_MASK from userland programs v2
Date: Thu, 24 Apr 2008 18:41:20 +0400	[thread overview]
Message-ID: <20080424144120.GA7717@cvg> (raw)

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)
 

             reply	other threads:[~2008-04-24 14:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-24 14:41 Cyrill Gorcunov [this message]
2008-04-24 18:06 ` [PATCH] x86: vm86 - hide X86_VM_MASK from userland programs v2 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080424144120.GA7717@cvg \
    --to=gorcunov@gmail.com \
    --cc=dwmw2@infradead.org \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox