Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113339
b: refs/heads/master
c: b6cffde
h: refs/heads/master
i:
  113337: aaa5266
  113335: d00196c
v: v3
  • Loading branch information
Peter Oruba authored and Ingo Molnar committed Sep 23, 2008
1 parent a344bc9 commit 0197163
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 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: 18dbc9160507dc7df998e00cd1dcd7889557307b
refs/heads/master: b6cffde1a20409f9720d5c9aba28d3efd3a4f04e
14 changes: 7 additions & 7 deletions trunk/arch/x86/kernel/microcode_amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,12 +304,12 @@ static void * get_next_ucode(u8 *buf, unsigned int size,
static int install_equiv_cpu_table(u8 *buf,
int (*get_ucode_data)(void *, const void *, size_t))
{
#define UCODE_HEADER_SIZE 12
u8 *hdr[UCODE_HEADER_SIZE];
unsigned int *buf_pos = (unsigned int *)hdr;
#define UCODE_CONTAINER_HEADER_SIZE 12
u8 *container_hdr[UCODE_CONTAINER_HEADER_SIZE];
unsigned int *buf_pos = (unsigned int *)container_hdr;
unsigned long size;

if (get_ucode_data(&hdr, buf, UCODE_HEADER_SIZE))
if (get_ucode_data(&container_hdr, buf, UCODE_CONTAINER_HEADER_SIZE))
return 0;

size = buf_pos[2];
Expand All @@ -326,14 +326,14 @@ static int install_equiv_cpu_table(u8 *buf,
return 0;
}

buf += UCODE_HEADER_SIZE;
buf += UCODE_CONTAINER_HEADER_SIZE;
if (get_ucode_data(equiv_cpu_table, buf, size)) {
vfree(equiv_cpu_table);
return 0;
}

return size + UCODE_HEADER_SIZE; /* add header length */
#undef UCODE_HEADER_SIZE
return size + UCODE_CONTAINER_HEADER_SIZE; /* add header length */
#undef UCODE_CONTAINER_HEADER_SIZE
}

static void free_equiv_cpu_table(void)
Expand Down

0 comments on commit 0197163

Please sign in to comment.