diff options
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); |