Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 206183
b: refs/heads/master
c: 3c41758
h: refs/heads/master
i:
  206181: b4565f8
  206179: 8a75d65
  206175: 7b20ee9
v: v3
  • Loading branch information
Huang Ying authored and H. Peter Anvin committed Jun 11, 2010
1 parent 17cab80 commit 2a68fa8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1f9a0bd4989fd16842ad71fc89240b48ab191446
refs/heads/master: 3c417588603e5411f29d22a40f3b5ff71529a4f0
2 changes: 1 addition & 1 deletion trunk/arch/x86/include/asm/mce.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

/* CTL2 register defines */
#define MCI_CTL2_CMCI_EN (1ULL << 30)
#define MCI_CTL2_CMCI_THRESHOLD_MASK 0xffffULL
#define MCI_CTL2_CMCI_THRESHOLD_MASK 0x7fffULL

#define MCJ_CTX_MASK 3
#define MCJ_CTX(flags) ((flags) & MCJ_CTX_MASK)
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/x86/kernel/cpu/mcheck/mce_intel.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ static void cmci_discover(int banks, int boot)
continue;
}

val &= ~MCI_CTL2_CMCI_THRESHOLD_MASK;
val |= MCI_CTL2_CMCI_EN | CMCI_THRESHOLD;
wrmsrl(MSR_IA32_MCx_CTL2(i), val);
rdmsrl(MSR_IA32_MCx_CTL2(i), val);
Expand Down

0 comments on commit 2a68fa8

Please sign in to comment.