Skip to contentSkip to conversation

x86: print out buggy mptable

PATCH In review Yinghai Lu 2 participants 2 messages Apr 7, 2008 x86

lore
Share & tools
lore

Yinghai Lu

author
#0 lore raw

PATCH 1/1 x86: print out buggy mptable

print out buggy mptable, instead of skipping it quietly

arch/x86/kernel/mpparse.c +4 -0
Index: linux-2.6/arch/x86/kernel/mpparse.c
===================================================================
@@ -391,6 +391,10 @@ static int __init smp_read_mpc(struct mp
 			}
 		default:
 			{
+				/* wrong mptable */
+				printk(KERN_ERR "type %x\n", *mpt);
+				printk(KERN_ERR "Your mptable is wrong, contact your HW vendor!\n");
+				print_hex_dump(KERN_ERR, "  ", DUMP_PREFIX_ADDRESS, 16, 1, mpc, mpc->mpc_length, 1);
 				count = mpc->mpc_length;
 				break;
 			}
#1 lore raw
Quoted 1 line · Yinghai Lu

print out buggy mptable, instead of skipping it quietly

thanks Yinghai, applied.

Ingo