diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2009-01-20 21:27:23 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2009-01-20 21:27:23 +0000 |
commit | c5983305ef67f2f7df81945ae5508fdf2da6c5ea (patch) | |
tree | 5d7212e228aab7689f4ab1ea4925f5adebfc9310 /src | |
parent | 8c4af2b9e278d0c48cc6820ae2d1a300915425cb (diff) | |
download | coreboot-c5983305ef67f2f7df81945ae5508fdf2da6c5ea.tar.xz |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/cpu/intel/microcode/microcode.c | 8 | ||||
-rw-r--r-- | src/include/cpu/intel/microcode.h | 2 |
2 files changed, 5 insertions, 5 deletions
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; diff --git a/src/include/cpu/intel/microcode.h b/src/include/cpu/intel/microcode.h index 27e0b3b31c..f2f044ab87 100644 --- a/src/include/cpu/intel/microcode.h +++ b/src/include/cpu/intel/microcode.h @@ -1 +1 @@ -void intel_update_microcode(void *microcode_updates); +void intel_update_microcode(const void *microcode_updates); |