git: pc64: Support to apply AMD microcode update
Aaron LI
aly at crater.dragonflybsd.org
Mon Oct 5 04:08:16 PDT 2026
commit faa42c5d74ba2a316e2b77ee5dff23b869301e69
Author: LI Leding <lileding at gmail.com>
Date: Thu Oct 1 11:00:57 2026 +0800
pc64: Support to apply AMD microcode update
* Implement ucode_load_bsp() that runs in hammer_time() immediately
before identify_cpu(), so the microcode update that's preloaded by the
boot loader can be applied before kernel detecting the CPU features.
The companion ucode_apply() function is called from initializecpu() on
each AP to picks up the microcode update.
Note: Only AMD CPUs are supported now.
* Add "cpu_microcode_load" and "cpu_microcode_name" variables to
loader.conf to load the CPU microcode and document them.
Co-authored-by: Aaron LI <aly at aaronly.me>
GitHub-PR: https://github.com/DragonFlyBSD/DragonFlyBSD/pull/55
Summary of changes:
share/man/man5/loader.conf.5 | 27 ++++
stand/boot/dloader/loader-bootp.conf | 8 +
stand/boot/dloader/loader.conf | 8 +
sys/platform/pc64/conf/files | 1 +
sys/platform/pc64/include/ucode.h | 43 +++++
sys/platform/pc64/x86_64/initcpu.c | 3 +
sys/platform/pc64/x86_64/machdep.c | 2 +
sys/platform/pc64/x86_64/ucode.c | 294 +++++++++++++++++++++++++++++++++++
8 files changed, 386 insertions(+)
create mode 100644 sys/platform/pc64/include/ucode.h
create mode 100644 sys/platform/pc64/x86_64/ucode.c
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/faa42c5d74ba2a316e2b77ee5dff23b869301e69
--
DragonFly BSD source repository
More information about the Commits
mailing list