Commit 8f2588e0 authored by Andi Kleen's avatar Andi Kleen Committed by Stephen Hemminger

[PATCH] Update i386 microcode driver for x86-64

The microcode driver needs to support 64bit physical addresses too.
parent ca92c573
......@@ -371,7 +371,8 @@ static void do_update_one (void * unused)
spin_lock_irqsave(&microcode_update_lock, flags);
/* write microcode via MSR 0x79 */
wrmsr(MSR_IA32_UCODE_WRITE, (unsigned int)(uci->mc->bits), 0);
wrmsr(MSR_IA32_UCODE_WRITE, (u64)(uci->mc->bits),
(u64)(uci->mc->bits) >> 32);
wrmsr(MSR_IA32_UCODE_REV, 0, 0);
__asm__ __volatile__ ("cpuid" : : : "ax", "bx", "cx", "dx");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment