HomeFreeBSD

stand: create common set_currdev

Description

stand: create common set_currdev

Pull together the nearly identical copies of set_currdev in i386,
userboot and efi. Other boot loaders have variances that might be fine
to use the common routine, or not. Since they are harder to test for me,
and ofw and uboot do handle these setting differently, leave them be for
now.

Sponsored by: Netflix
Reviewed by: kevans
Differential Revision: https://reviews.freebsd.org/D38005

(cherry picked from commit ad70f2e22ef29f94bf5208b3a9a2389575330b06)

Details

Provenance
impAuthored on Jan 11 2023, 10:14 PM
Reviewer
kevans
Differential Revision
D38005: stand: create common set_currdev
Parents
rG6c918e0bfaf8: stand: Move dev_cleanup into libsa
Branches
Unknown
Tags
Unknown