From: Borislav Petkov Date: Fri, 15 Oct 2010 13:20:18 +0000 (+0200) Subject: EDAC, MCE: Add a BIT_64() macro X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=cf1d2200dbc214c26a116c4d0c75b7cf27bb19b6;p=openwrt%2Fstaging%2Fblogic.git 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 --- 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 +#define BIT_64(n) (U64_C(1) << (n)) + #define ERROR_CODE(x) ((x) & 0xffff) #define EXT_ERROR_CODE(x) (((x) >> 16) & 0x1f)