[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080424083558.GA7749@cvg>
Date: Thu, 24 Apr 2008 12:35:58 +0400
From: Cyrill Gorcunov <gorcunov@...il.com>
To: Ingo Molnar <mingo@...e.hu>, "H. Peter Anvin" <hpa@...or.com>,
David Woodhouse <dwmw2@...radead.org>
Cc: LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH] x86: vm86 - hide X86_VM_MASK from userland programs
X86_VM_MASK is a kernel specific flag so lets hide it from
userland programs
Signed-off-by: Cyrill Gorcunov <gorcunov@...il.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 12:31:53.000000000 +0400
@@ -14,12 +14,16 @@
#include <asm/processor-flags.h>
+#ifdef __KERNEL__
+
#ifdef CONFIG_VM86
#define X86_VM_MASK X86_EFLAGS_VM
#else
#define X86_VM_MASK 0 /* No VM86 support */
#endif
+#endif /* __KERNEL__ */
+
#define BIOSSEG 0x0f000
#define CPU_086 0
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists