HomeFreeBSD

cpucontrol(8): De-duplicate common update logic

Description

cpucontrol(8): De-duplicate common update logic

Every µcode-updater must open the cpucontrol devfs node RDWR, open a
firmware file, validate the FW file has a positive length, mmap it, etc.
De-duplicate that identical logic between every individual platform.

Also, constify references to the readonly-mapped firmware files while here.

Sponsored by: Dell EMC Isilon

Details

Provenance
cemAuthored on
Parents
rS340420: epoch(9) revert r340097 - no longer a need for multiple sections per cpu
Branches
Unknown
Tags
Unknown