summaryrefslogtreecommitdiffstats
path: root/drivers/edac/mce_amd.h
diff options
context:
space:
mode:
authorBorislav Petkov <borislav.petkov@amd.com>2010-10-15 15:20:18 +0200
committerBorislav Petkov <bp@amd64.org>2010-10-21 14:48:06 +0200
commitcf1d2200dbc214c26a116c4d0c75b7cf27bb19b6 (patch)
treefdabf85aae9a1ca8bfae2eb5257279894857ef7e /drivers/edac/mce_amd.h
parentfda7561f438aeddf074e2db0890e283195aa7779 (diff)
downloadblackbird-op-linux-cf1d2200dbc214c26a116c4d0c75b7cf27bb19b6.tar.gz
blackbird-op-linux-cf1d2200dbc214c26a116c4d0c75b7cf27bb19b6.zip
EDAC, MCE: Add a BIT_64() macro
Add a macro for 64-bit vectors to use when accessing MSR contents. Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Diffstat (limited to 'drivers/edac/mce_amd.h')
-rw-r--r--drivers/edac/mce_amd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/edac/mce_amd.h b/drivers/edac/mce_amd.h
index 0d0637debbad..35f6e0e3b297 100644
--- a/drivers/edac/mce_amd.h
+++ b/drivers/edac/mce_amd.h
@@ -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)
OpenPOWER on IntegriCloud