Changeset View
Changeset View
Standalone View
Standalone View
sys/x86/x86/ucode.c
| Show First 20 Lines • Show All 271 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| uint32_t signature, revision; | uint32_t signature, revision; | ||||
| uint32_t regs[4]; | uint32_t regs[4]; | ||||
| do_cpuid(1, regs); | do_cpuid(1, regs); | ||||
| signature = regs[0]; | signature = regs[0]; | ||||
| revision = rdmsr(MSR_BIOS_SIGN); | revision = rdmsr(MSR_BIOS_SIGN); | ||||
| return (ucode_amd_find("loader blob", signature, revision, data, *len, len)); | return (ucode_amd_find("loader blob", signature, &revision, data, *len, | ||||
| len)); | |||||
| } | } | ||||
| /* | /* | ||||
| * Release any memory backing unused microcode blobs back to the system. | * Release any memory backing unused microcode blobs back to the system. | ||||
| * We copy the selected update and free the entire microcode file. | * We copy the selected update and free the entire microcode file. | ||||
| */ | */ | ||||
| static void | static void | ||||
| ucode_release(void *arg __unused) | ucode_release(void *arg __unused) | ||||
| ▲ Show 20 Lines • Show All 166 Lines • Show Last 20 Lines | |||||