[PATCH] Clean up after over-efficient machine formatting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <[email protected]>

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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux