Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 308089
b: refs/heads/master
c: a129a7c
h: refs/heads/master
i:
  308087: ab99342
v: v3
  • Loading branch information
Andi Kleen authored and Tony Luck committed May 23, 2012
1 parent 5f159a3 commit 1b61980
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8571723a698dcc0ee16c1c63908aa99dd940ce5c
refs/heads/master: a129a7c84582629741e5fa6f40026efcd7a65bd4
8 changes: 8 additions & 0 deletions trunk/arch/x86/kernel/cpu/mcheck/mce.c
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,14 @@ static inline void mce_gather_info(struct mce *m, struct pt_regs *regs)
if (m->mcgstatus & (MCG_STATUS_RIPV|MCG_STATUS_EIPV)) {
m->ip = regs->ip;
m->cs = regs->cs;

/*
* When in VM86 mode make the cs look like ring 3
* always. This is a lie, but it's better than passing
* the additional vm86 bit around everywhere.
*/
if (v8086_mode(regs))
m->cs |= 3;
}
/* Use accurate RIP reporting if available. */
if (rip_msr)
Expand Down

0 comments on commit 1b61980

Please sign in to comment.