Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113335
b: refs/heads/master
c: 5b792d3
h: refs/heads/master
i:
  113333: c5d56c4
  113331: f315b1f
  113327: a66d722
v: v3
  • Loading branch information
Randy Dunlap authored and Ingo Molnar committed Aug 22, 2008
1 parent 17486ea commit d00196c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d45de40934897c6ee5b05141f7895bbb28512395
refs/heads/master: 5b792d320f28ff83dd4c13f984807e26235f7703
8 changes: 4 additions & 4 deletions trunk/arch/x86/kernel/microcode_amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ static void apply_microcode_amd(int cpu)
unsigned int rev;
int cpu_num = raw_smp_processor_id();
struct ucode_cpu_info *uci = ucode_cpu_info + cpu_num;
unsigned long addr;

/* We should bind the task to the CPU */
BUG_ON(cpu_num != cpu);
Expand All @@ -215,10 +216,9 @@ static void apply_microcode_amd(int cpu)

spin_lock_irqsave(&microcode_update_lock, flags);

edx = (unsigned int)(((unsigned long)
&(uci->mc.mc_amd->hdr.data_code)) >> 32);
eax = (unsigned int)(((unsigned long)
&(uci->mc.mc_amd->hdr.data_code)) & 0xffffffffL);
addr = (unsigned long)&uci->mc.mc_amd->hdr.data_code;
edx = (unsigned int)(((unsigned long)upper_32_bits(addr)));
eax = (unsigned int)(((unsigned long)lower_32_bits(addr)));

asm volatile("movl %0, %%ecx; wrmsr" :
: "i" (0xc0010020), "a" (eax), "d" (edx) : "ecx");
Expand Down

0 comments on commit d00196c

Please sign in to comment.