From c5983305ef67f2f7df81945ae5508fdf2da6c5ea Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Tue, 20 Jan 2009 21:27:23 +0000 Subject: fix compiler warnings (trivial) Signed-off-by: Stefan Reinauer Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3878 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/cpu/intel/microcode/microcode.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/cpu') diff --git a/src/cpu/intel/microcode/microcode.c b/src/cpu/intel/microcode/microcode.c index 38739babe6..a02323dedf 100644 --- a/src/cpu/intel/microcode/microcode.c +++ b/src/cpu/intel/microcode/microcode.c @@ -51,13 +51,13 @@ static inline uint32_t read_microcode_rev(void) 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 @@ void intel_update_microcode(void *microcode_updates) 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; -- cgit v1.2.3