commit | cf1d2200dbc214c26a116c4d0c75b7cf27bb19b6 | [log] [tgz] |
---|---|---|
author | Borislav Petkov <borislav.petkov@amd.com> | Fri Oct 15 15:20:18 2010 +0200 |
committer | Borislav Petkov <bp@amd64.org> | Thu Oct 21 14:48:06 2010 +0200 |
tree | fdabf85aae9a1ca8bfae2eb5257279894857ef7e | |
parent | fda7561f438aeddf074e2db0890e283195aa7779 [diff] [blame] |
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>
diff --git a/drivers/edac/mce_amd.h b/drivers/edac/mce_amd.h index 0d0637d..35f6e0e 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)