fix compiler warnings (trivial)

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3878 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Stefan Reinauer 2009-01-20 21:27:23 +00:00 committed by Stefan Reinauer
parent 8c4af2b9e2
commit c5983305ef
2 changed files with 5 additions and 5 deletions

View File

@ -51,13 +51,13 @@ static inline uint32_t read_microcode_rev(void)
return msr.hi; return msr.hi;
} }
void intel_update_microcode(void *microcode_updates) void intel_update_microcode(const void *microcode_updates)
{ {
unsigned int eax; unsigned int eax;
unsigned int pf, rev, sig; unsigned int pf, rev, sig;
unsigned int x86_model, x86_family; unsigned int x86_model, x86_family;
struct microcode *m; const struct microcode *m;
char *c; const char *c;
msr_t msr; msr_t msr;
/* cpuid sets msr 0x8B iff a microcode update has been loaded. */ /* cpuid sets msr 0x8B iff a microcode update has been loaded. */
@ -85,7 +85,7 @@ void intel_update_microcode(void *microcode_updates)
print_debug("\r\n"); print_debug("\r\n");
m = microcode_updates; m = microcode_updates;
for(c = microcode_updates; m->hdrver; m = (struct microcode *)c) { for(c = microcode_updates; m->hdrver; m = (const struct microcode *)c) {
if ((m->sig == sig) && (m->pf & pf)) { if ((m->sig == sig) && (m->pf & pf)) {
unsigned int new_rev; unsigned int new_rev;
msr.lo = (unsigned long)(&m->bits) & 0xffffffff; msr.lo = (unsigned long)(&m->bits) & 0xffffffff;

View File

@ -1 +1 @@
void intel_update_microcode(void *microcode_updates); void intel_update_microcode(const void *microcode_updates);