Skip to contentSkip to conversation

x86_64 MCE handling

PATCH New Marc Bevand 1 participant 1 message Apr 5, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86_64 MCE handling

The attached patch fixes some x86_64 Machine Check Exceptions handling code. It should apply cleanly to 2.6.5-rc3 or later.

Signature · 1 line
Marc Bevand
arch/x86_64/kernel/mce.c renamed from arch/x86_64/kernel/mce.c.orig +2 -2
@@ -85,7 +85,7 @@
 	if (m->addr)
 		printk("ADDR %Lx ", m->addr);
 	if (m->misc)
-		printk("MISC %Lx ", m->addr); 	
+		printk("MISC %Lx ", m->misc); 	
 	printk("\n");
 }
 
@@ -160,7 +160,7 @@
 		if (m.status & MCI_STATUS_MISCV)
 			rdmsrl(MSR_IA32_MC0_MISC + i*4, m.misc);
 		if (m.status & MCI_STATUS_ADDRV)
-			rdmsrl(MSR_IA32_MC0_MISC + i*4, m.addr);
+			rdmsrl(MSR_IA32_MC0_ADDR + i*4, m.addr);
 
 		rdtscll(m.tsc);
 		wrmsrl(MSR_IA32_MC0_STATUS + i*4, 0);