diff options
author | Borislav Petkov <borislav.petkov@amd.com> | 2010-10-15 15:20:18 +0200 |
---|---|---|
committer | Borislav Petkov <bp@amd64.org> | 2010-10-21 14:48:06 +0200 |
commit | cf1d2200dbc214c26a116c4d0c75b7cf27bb19b6 (patch) | |
tree | fdabf85aae9a1ca8bfae2eb5257279894857ef7e /drivers/edac | |
parent | fda7561f438aeddf074e2db0890e283195aa7779 (diff) | |
download | lwn-cf1d2200dbc214c26a116c4d0c75b7cf27bb19b6.tar.gz lwn-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')
-rw-r--r-- | drivers/edac/mce_amd.h | 2 |
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) |