Author: stepan Date: 2009-01-20 22:27:23 +0100 (Tue, 20 Jan 2009) New Revision: 3878
Modified: trunk/coreboot-v2/src/cpu/intel/microcode/microcode.c trunk/coreboot-v2/src/include/cpu/intel/microcode.h Log: fix compiler warnings (trivial) Signed-off-by: Stefan Reinauer stepan@coresystems.de Acked-by: Stefan Reinauer stepan@coresystems.de
Modified: trunk/coreboot-v2/src/cpu/intel/microcode/microcode.c =================================================================== --- trunk/coreboot-v2/src/cpu/intel/microcode/microcode.c 2009-01-20 20:25:48 UTC (rev 3877) +++ trunk/coreboot-v2/src/cpu/intel/microcode/microcode.c 2009-01-20 21:27:23 UTC (rev 3878) @@ -51,13 +51,13 @@ return msr.hi; }
-void intel_update_microcode(void *microcode_updates) +void intel_update_microcode(const void *microcode_updates) { unsigned int eax; unsigned int pf, rev, sig; unsigned int x86_model, x86_family; - struct microcode *m; - char *c; + const struct microcode *m; + const char *c; msr_t msr; /* cpuid sets msr 0x8B iff a microcode update has been loaded. */ @@ -85,7 +85,7 @@ print_debug("\r\n");
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)) { unsigned int new_rev; msr.lo = (unsigned long)(&m->bits) & 0xffffffff;
Modified: trunk/coreboot-v2/src/include/cpu/intel/microcode.h =================================================================== --- trunk/coreboot-v2/src/include/cpu/intel/microcode.h 2009-01-20 20:25:48 UTC (rev 3877) +++ trunk/coreboot-v2/src/include/cpu/intel/microcode.h 2009-01-20 21:27:23 UTC (rev 3878) @@ -1 +1 @@ -void intel_update_microcode(void *microcode_updates); +void intel_update_microcode(const void *microcode_updates);