Skip to content

Commit

Permalink
EDAC, MCE: Add a BIT_64() macro
Browse files Browse the repository at this point in the history
Add a macro for 64-bit vectors to use when accessing MSR contents.

Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
  • Loading branch information
Borislav Petkov authored and Borislav Petkov committed Oct 21, 2010
1 parent fda7561 commit cf1d220
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/edac/mce_amd.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit cf1d220

Please sign in to comment.