lkml.org 
[lkml]   [2007]   [Apr]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] Clean up after over-efficient machine formatting
The recent patch cleanup up, among other things, msr.h, used a script
to canonicalize the formatting. Unfortunately it also formatted the
EFER bit numbers as 32-bit expanded hex, which is ridiculous. Clean up.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>

diff -urN --exclude 'o.*' --exclude '*~' stock/linux-2.6.21-rc6-mm1-cc1/include/asm-i386/msr-index.h linux-2.6.21-rc6-mm1/include/asm-i386/msr-index.h
--- stock/linux-2.6.21-rc6-mm1-cc1/include/asm-i386/msr-index.h 2007-04-11 10:51:06.000000000 -0700
+++ linux-2.6.21-rc6-mm1/include/asm-i386/msr-index.h 2007-04-10 10:57:06.000000000 -0700
@@ -12,10 +12,10 @@
#define MSR_KERNEL_GS_BASE 0xc0000102 /* SwapGS GS shadow */

/* EFER bits: */
-#define _EFER_SCE 0x00000000 /* SYSCALL/SYSRET */
-#define _EFER_LME 0x00000008 /* Long mode enable */
-#define _EFER_LMA 0x0000000a /* Long mode active (read-only) */
-#define _EFER_NX 0x0000000b /* No execute enable */
+#define _EFER_SCE 0 /* SYSCALL/SYSRET */
+#define _EFER_LME 8 /* Long mode enable */
+#define _EFER_LMA 10 /* Long mode active (read-only) */
+#define _EFER_NX 11 /* No execute enable */

#define EFER_SCE (1<<_EFER_SCE)
#define EFER_LME (1<<_EFER_LME)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2007-04-11 19:59    [W:0.074 / U:0.392 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site