Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277481
b: refs/heads/master
c: 96b0ee4
h: refs/heads/master
i:
  277479: a02bad0
v: v3
  • Loading branch information
Borislav Petkov authored and Borislav Petkov committed Dec 14, 2011
1 parent 2648eaf commit a51fee2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f72c1a576565a4927d650218e183ab5053ab8c3a
refs/heads/master: 96b0ee4588036b6fa7cf38c17a9e40531241e895
8 changes: 8 additions & 0 deletions trunk/arch/x86/kernel/microcode_amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ struct microcode_amd {

static struct equiv_cpu_entry *equiv_cpu_table;

/* page-sized ucode patch buffer */
void *patch;

static int collect_cpu_info_amd(int cpu, struct cpu_signature *csig)
{
struct cpuinfo_x86 *c = &cpu_data(cpu);
Expand Down Expand Up @@ -351,9 +354,14 @@ static struct microcode_ops microcode_amd_ops = {

struct microcode_ops * __init init_amd_microcode(void)
{
patch = (void *)get_zeroed_page(GFP_KERNEL);
if (!patch)
return NULL;

return &microcode_amd_ops;
}

void __exit exit_amd_microcode(void)
{
free_page((unsigned long)patch);
}

0 comments on commit a51fee2

Please sign in to comment.