提交 cf1d2200 编写于 作者: B Borislav Petkov 提交者: Borislav Petkov

EDAC, MCE: Add a BIT_64() macro

Add a macro for 64-bit vectors to use when accessing MSR contents.
Signed-off-by: NBorislav Petkov <borislav.petkov@amd.com>
上级 fda7561f
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
#include <asm/mce.h> #include <asm/mce.h>
#define BIT_64(n) (U64_C(1) << (n))
#define ERROR_CODE(x) ((x) & 0xffff) #define ERROR_CODE(x) ((x) & 0xffff)
#define EXT_ERROR_CODE(x) (((x) >> 16) & 0x1f) #define EXT_ERROR_CODE(x) (((x) >> 16) & 0x1f)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册