[PATCH] Fix microcode change for i386

From: Andi Kleen
Date: Wed Feb 18 2004 - 18:40:39 EST



This patch should fix the i386 compile problem in the microcode driver I caused with
the IA32e updates.

diff -u linux-2.6.3-amd64/arch/i386/kernel/microcode.c-o linux-2.6.3-amd64/arch/i386/kernel/microcode.c
--- linux-2.6.3-amd64/arch/i386/kernel/microcode.c-o 2004-02-19 00:19:32.000000000 +0100
+++ linux-2.6.3-amd64/arch/i386/kernel/microcode.c 2004-02-19 00:56:41.000000000 +0100
@@ -371,8 +371,8 @@
spin_lock_irqsave(&microcode_update_lock, flags);

/* write microcode via MSR 0x79 */
- wrmsr(MSR_IA32_UCODE_WRITE, (u64)(uci->mc->bits),
- (u64)(uci->mc->bits) >> 32);
+ wrmsr(MSR_IA32_UCODE_WRITE, (u32)(unsigned long)(uci->mc->bits),
+ (u32)(((unsigned long)uci->mc->bits) >> 32));
wrmsr(MSR_IA32_UCODE_REV, 0, 0);

__asm__ __volatile__ ("cpuid" : : : "ax", "bx", "cx", "dx");
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/