EDAC, MCE: Add a BIT_64() macro
authorBorislav Petkov <borislav.petkov@amd.com>
Fri, 15 Oct 2010 13:20:18 +0000 (15:20 +0200)
committerBorislav Petkov <bp@amd64.org>
Thu, 21 Oct 2010 12:48:06 +0000 (14:48 +0200)
Add a macro for 64-bit vectors to use when accessing MSR contents.

Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
drivers/edac/mce_amd.h

index 0d0637debbadde81993d8dddeb79bf83cb2f5560..35f6e0e3b297de16ad5e7c0ccac18dae0c388590 100644 (file)
@@ -5,6 +5,8 @@
 
 #include <asm/mce.h>
 
+#define BIT_64(n)                      (U64_C(1) << (n))
+
 #define ERROR_CODE(x)                  ((x) & 0xffff)
 #define EXT_ERROR_CODE(x)              (((x) >> 16) & 0x1f)