Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 324037
b: refs/heads/master
c: e7e632f
h: refs/heads/master
i:
  324035: b936403
v: v3
  • Loading branch information
Borislav Petkov authored and H. Peter Anvin committed Aug 22, 2012
1 parent 84034f2 commit 893e0f2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 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: e43f6e67ec1c142550860bbe0b51166c5ee4cac8
refs/heads/master: e7e632f5ba240fbc313c49ed6559681ea57534e9
6 changes: 0 additions & 6 deletions trunk/arch/x86/include/asm/microcode.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@ static inline struct microcode_ops * __init init_intel_microcode(void)
#ifdef CONFIG_MICROCODE_AMD
extern struct microcode_ops * __init init_amd_microcode(void);
extern void __exit exit_amd_microcode(void);

static inline void get_ucode_data(void *to, const u8 *from, size_t n)
{
memcpy(to, from, n);
}

#else
static inline struct microcode_ops * __init init_amd_microcode(void)
{
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/x86/kernel/microcode_amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ static int get_matching_microcode(int cpu, const u8 *ucode_ptr,
memset(patch, 0, PAGE_SIZE);

/* all looks ok, get the binary patch */
get_ucode_data(patch, ucode_ptr + SECTION_HDR_SIZE, actual_size);
memcpy(patch, ucode_ptr + SECTION_HDR_SIZE, actual_size);

return actual_size;
}
Expand Down Expand Up @@ -238,7 +238,7 @@ static int install_equiv_cpu_table(const u8 *buf)
return -ENOMEM;
}

get_ucode_data(equiv_cpu_table, buf + CONTAINER_HDR_SZ, size);
memcpy(equiv_cpu_table, buf + CONTAINER_HDR_SZ, size);

/* add header length */
return size + CONTAINER_HDR_SZ;
Expand Down

0 comments on commit 893e0f2

Please sign in to comment.