FreeBSD/src 48ec6d3 (r348075)sys/amd64/amd64 initcpu.c, sys/i386/i386 initcpu.c

Do not call hw_mds_recalculate() from initializecpu().

If MDS mitigation is enabled by the tunable but MDS microcode is not
early-loaded, software mitigation is selected.  This causes
initializecpu() to try to allocate memory which makes boot process
very unhappy.

Create SYSINIT that runs sufficiently late to succeed.

Reported by:    naddy
PR:     237968
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
DeltaFile
+8-0sys/x86/x86/cpu_machdep.c
+0-1sys/amd64/amd64/initcpu.c
+0-1sys/i386/i386/initcpu.c
+8-23 files

UnifiedSplitRaw